CVE-2024-45801
MEDIUM 6.1CVSS 3.1Tampering by prototype polution in DOMPurify
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.
- Published
- 16 Sep 2024
- Last modified
- 27 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1321CWE-1333
- Also known as
- GHSA-mmhx-hmjr-r674
- Sources
- NVDJSONCVE ListJSONOSV GHSA-mmhx-hmjr-r674JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
< 2.5.4 | 2.5.4 |
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.1.3 | 3.1.3 |
| CVE List | cure53 | DOMPurify | = < 2.5.4; = >=3.0.0, < 3.1.3 | |
| OSV | npm | dompurify | < 2.5.4 | 2.5.4 |
| OSV | npm | dompurify | >= 3.0.0, < 3.1.3 | 3.1.3 |
References
- https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21 · Patch, x_refsource_MISC, WEB
- https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc · Patch, x_refsource_MISC, WEB
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-mmhx-hmjr-r674 · Third Party Advisory, x_refsource_CONFIRM, 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
History
- 27 Nov 2026 16:57 UTC · NVD: status Analyzed → Modified; 1 reference added
- 27 Nov 2026 16:57 UTC · OSV: 1 reference added
- 27 Nov 2026 15:57 UTC · CVE List: first stored (published 16 Sep 2024)
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 16 Sep 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Sep 2024)