CVE-2021-4072 Cross-site Scripting (XSS) - Stored in elgg/elgg

Critical 9.0 Published Updated

Attackers can inject malicious scripts into Elgg pages, potentially stealing user sessions or executing code in victim browsers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-4072?

CVE-2021-4072 is a critical cross-site scripting vulnerability in elgg/elgg, published on 24 Dec 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

elgg is vulnerable to Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Weakness: CWE-79

Which versions are affected by CVE-2021-4072?

2 open source packages ship an affected version, including elgg/elgg. It affects 1 product.

PackageAffectedFixed in
elgg/elgg PackagistAll versions3.3.24
elgg/elgg PackagistAll versions3.3.24

Products include Elgg Elgg.

How do I fix CVE-2021-4072?

Upgrade elgg/elgg to 3.3.24 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-4072 being exploited?

There is no known exploitation of CVE-2021-4072 in the wild and no public exploit code.

Sources

Also known as GHSA-2xw8-j43j-5vxp.

Is CVE-2021-4072 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free