# CVE-2021-4072: elgg is vulnerable to Cross-site Scripting

Source: https://junglewise.ai/threats/cve-2021-4072-elgg-is-vulnerable-to-cross-site-scripting  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-01-06  
License: CC BY 4.0 with a link back

CVE-2021-4072 · Severity: low · CVSS 3.1 · Published 2022-01-06

elgg is vulnerable to Cross-site Scripting

Technologies: [elgg/elgg (Packagist)](https://junglewise.ai/threats/technologies/elgg-elgg). Vendors: [Packagist](https://junglewise.ai/threats/vendors/packagist).

## Quick answers

**Is CVE-2021-4072 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-4072 being exploited in the wild.

**How severe is CVE-2021-4072?** Low severity, with a CVSS score of 3.1, published 6 January 2022.

**Which products and versions are affected?** elgg/elgg (Packagist) ECOSYSTEM:introduced=0,fixed=3.3.24.

**Is there a fix for CVE-2021-4072?** Yes. elgg/elgg (Packagist): upgrade to 3.3.24 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-4072?** Check whether you run elgg/elgg (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- elgg/elgg (Packagist): upgrade to 3.3.24 or later

  ```sh
  composer require elgg/elgg:^3.3.24
  ```


## Affected products

- elgg/elgg (Packagist) ECOSYSTEM:introduced=0,fixed=3.3.24

## Identifiers

- CVE-2021-4072
- GHSA-2xw8-j43j-5vxp

## Related threats

- [Elgg open redirect](https://junglewise.ai/threats/cve-2019-11016-elgg-open-redirect)
- [Elgg Reflected XSS Vulnerability](https://junglewise.ai/threats/cve-2011-2935-elgg-reflected-xss-vulnerability)
- [Information exposure in elgg](https://junglewise.ai/threats/cve-2021-3980-information-exposure-in-elgg)
- [elgg is vulnerable to Authorization Bypass Through User-Controlled Key](https://junglewise.ai/threats/cve-2021-3964-elgg-is-vulnerable-to-authorization-bypass-through-user-controlled)
