CVE-2024-47875 DOMPurify nesting-based mXSS
MediumCVSS 6.1
EPSS 1.1%
- 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. DOMpurify was vulnerable to nesting-based mXSS. This vulnerability is fixed in 2.5.0 and 3.1.3.
Upgrade path
12 packages: 8 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.0; = < 2.5.0; = < 3.1.3; >= 3.0.0, < 3.1.3 | 2.5.0, 3.1.3 | Fixed |
| debian/cacti(Debian 12) | < 1.2.24+ds1-1+deb12u2; = 1.2.24+ds1-1; = 1.2.24+ds1-1+deb12u1 | 1.2.24+ds1-1+deb12u2 | Fixed |
| debian/cacti(Debian 13) | < 1.2.26+ds1-1 | 1.2.26+ds1-1 | Fixed |
| debian/cacti(Debian 14) | < 1.2.26+ds1-1 | 1.2.26+ds1-1 | Fixed |
| debian/node-dompurify(Debian 12) | < 2.4.1+dfsg+~2.4.0-2; = 2.4.1+dfsg+~2.4.0-1 | 2.4.1+dfsg+~2.4.0-2 | Fixed |
| debian/node-dompurify(Debian 13) | < 3.1.6+dfsg+~3.0.5-1 | 3.1.6+dfsg+~3.0.5-1 | Fixed |
| debian/node-dompurify(Debian 14) | < 3.1.6+dfsg+~3.0.5-1 | 3.1.6+dfsg+~3.0.5-1 | Fixed |
| npm dompurify(npm) | < 2.5.0; >= 3.0.0, < 3.1.3 | 2.5.0, 3.1.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cacti(Debian:12) | < 1.2.24+ds1-1+deb12u2 | 1.2.24+ds1-1+deb12u2 |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1 | No fix listed |
| debian/cacti(Debian:12) | = 1.2.24+ds1-1+deb12u1 | No fix listed |
| debian/cacti(Debian:13) | < 1.2.26+ds1-1 | 1.2.26+ds1-1 |
| debian/cacti(Debian:14) | < 1.2.26+ds1-1 | 1.2.26+ds1-1 |
| debian/node-dompurify(Debian:12) | < 2.4.1+dfsg+~2.4.0-2 | 2.4.1+dfsg+~2.4.0-2 |
| debian/node-dompurify(Debian:12) | = 2.4.1+dfsg+~2.4.0-1 | No fix listed |
| debian/node-dompurify(Debian:13) | < 3.1.6+dfsg+~3.0.5-1 | 3.1.6+dfsg+~3.0.5-1 |
| debian/node-dompurify(Debian:14) | < 3.1.6+dfsg+~3.0.5-1 | 3.1.6+dfsg+~3.0.5-1 |
| npm dompurify(npm) | < 2.5.0 | 2.5.0 |
| npm dompurify(npm) | >= 3.0.0, < 3.1.3 | 3.1.3 |
| ubuntu/node-dompurify(Ubuntu:22.04) | All versions | No fix listed |
| cure53 DOMPurify | = < 2.5.0 | No fix listed |
| cure53 DOMPurify | = < 3.1.3 | No fix listed |
| ubuntu/node-dompurify(Ubuntu:24.04) | All versions | No fix listed |
| cure53 DOMPurify | < 2.5.0 | 2.5.0 |
| 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
- Debian Security Tracker CVE-2024-47875 vendor-advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf exploit third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f patch
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a patch
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098 product
- lists.debian.org
- seclists.org
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- github.com product