# CVE-2024-45801: Tampering by prototype polution in DOMPurify

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- 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.91%, higher than 61% of CVEs (2026-12-01)
- Published: 2024-09-16T18:25:28.065Z
- Modified: 2026-11-27T15:45:07.556Z
- Also known as: GHSA-mmhx-hmjr-r674
- Weaknesses: CWE-1321, CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It has been discovered that malicious HTML using special nesting techniques can bypass the depth checking added to DOMPurify in recent releases. It was also possible to use Prototype Pollution to weaken the depth check. This renders dompurify unable to avoid cross site scripting (XSS) attacks. This issue has been addressed in versions 2.5.4 and 3.1.3 of DOMPurify. All users are advised to upgrade. There are no known workarounds for this vulnerability.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: < 2.5.4; >=3.0.0, < 3.1.3; before 2.5.4; from 3.0.0 before 3.1.3
- dompurify (npm): before 2.5.4; from 3.0.0 before 3.1.3

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-mmhx-hmjr-r674> (third-party-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21> (patch, web)
- <https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc> (patch, web)
- <https://lists.debian.org/debian-lts-announce/2026/11/msg00070.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45801> (advisory)
- <https://github.com/cure53/DOMPurify> (package)

## Sources

- CVE List: [CVE-2024-45801](https://www.cve.org/CVERecord?id=CVE-2024-45801), CVE Terms of Use, modified 2026-11-27
- GitHub Advisory Database: [GHSA-mmhx-hmjr-r674](https://github.com/advisories/GHSA-mmhx-hmjr-r674), CC-BY-4.0, modified 2026-11-27
- NVD: [CVE-2024-45801](https://nvd.nist.gov/vuln/detail/CVE-2024-45801), Public domain, modified 2026-11-27

---

Page: https://cve.day/CVE-2024-45801 · Whole record: https://cve.day/CVE-2024-45801.json · Rebuilt by cve.day 2026-11-27T15:57:24.776Z
