CVE-2024-45801 Tampering by prototype polution in DOMPurify
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
7 packages: 3 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-dompurify(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cure53 DOMPurify | < 2.5.4; = < 2.5.4; = >=3.0.0, < 3.1.3; >= 3.0.0, < 3.1.3 | 2.5.4, 3.1.3 | Fixed |
| debian/node-dompurify(Debian 12) | < 2.4.1+dfsg+~2.4.0-2+deb12u1; = 2.4.1+dfsg+~2.4.0-1; = 2.4.1+dfsg+~2.4.0-2 | 2.4.1+dfsg+~2.4.0-2+deb12u1 | Fixed |
| npm dompurify(npm) | < 2.5.4; >= 3.0.0, < 3.1.3 | 2.5.4, 3.1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm dompurify(npm) | < 2.5.4 | 2.5.4 |
| npm dompurify(npm) | >= 3.0.0, < 3.1.3 | 3.1.3 |
| debian/node-dompurify(Debian:12) | < 2.4.1+dfsg+~2.4.0-2+deb12u1 | 2.4.1+dfsg+~2.4.0-2+deb12u1 |
| debian/node-dompurify(Debian:12) | = 2.4.1+dfsg+~2.4.0-1 | No fix listed |
| debian/node-dompurify(Debian:12) | = 2.4.1+dfsg+~2.4.0-2 | No fix listed |
| ubuntu/node-dompurify(Ubuntu:22.04) | All versions | No fix listed |
| cure53 DOMPurify | = < 2.5.4 | No fix listed |
| cure53 DOMPurify | = >=3.0.0, < 3.1.3 | No fix listed |
| ubuntu/node-dompurify(Ubuntu:24.04) | All versions | No fix listed |
| cure53 DOMPurify | < 2.5.4 | 2.5.4 |
| cure53 DOMPurify | >= 3.0.0, < 3.1.3 | 3.1.3 |
| ubuntu/node-dompurify(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-dompurify(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-mmhx-hmjr-r674 third-party-advisory vendor-advisory
- https://github.com/cure53/DOMPurify/commit/1e520262bf4c66b5efda49e2316d6d1246ca7b21 patch
- https://github.com/cure53/DOMPurify/commit/26e1d69ca7f769f5c558619d644d90dd8bf26ebc patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- Debian Security Tracker CVE-2024-45801 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product