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

- Severity: Critical 9.0 (CVSS:3.0, scored by @huntrdev) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-24T13:25:09.000Z
- Modified: 2026-06-17T04:18:59.503Z
- Also known as: GHSA-2xw8-j43j-5vxp
- Weaknesses: CWE-79
- Assigned by: @huntrdev

## Description

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

(As written by CVE List.)

## Affected

- elgg elgg/elgg: from unspecified before 3.3.24
- elgg/elgg (Packagist): before 3.3.24
- elgg elgg: before 3.3.24

## Every score

- @huntrdev: CVSS:3.0 9.0 Critical `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://huntr.dev/bounties/74034253-732a-4251-a0f9-eca5f576c955> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/elgg/elgg/commit/c30b17bf75256ed3fcc84e2083147cc3951423d0> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4072> (advisory)
- <https://github.com/elgg/elgg> (package)

## Sources

- CVE List: [CVE-2021-4072](https://www.cve.org/CVERecord?id=CVE-2021-4072), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-2xw8-j43j-5vxp](https://github.com/advisories/GHSA-2xw8-j43j-5vxp), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-4072](https://nvd.nist.gov/vuln/detail/CVE-2021-4072), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4072 · Whole record: https://cve.day/CVE-2021-4072.json · Rebuilt by cve.day 2026-11-25T22:58:06.159Z
