CVE-2024-47875
CRITICAL10.0EPSS 0.70%DOMpurify has a nesting-based mXSS
Published: 10/11/2024Modified: 5/27/2026
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.
Affected packages (4)
- Debian/cactifrom 0, < 1.2.16+ds1-2+deb11u5
- Debian/node-dompurifyfrom 0, < 2.4.1+dfsg+~2.4.0-2
- Debian/node-dompurifyfrom 0, < 2.4.1+dfsg+~2.4.0-2
- npm/dompurifyfrom 0, < 2.5.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:H/SA:H |
| osv | CVSS 3.1 | CRITICAL10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-47875
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-47875
- PATCHhttps://github.com/cure53/DOMPurify
- WEBhttp://seclists.org/fulldisclosure/2025/Apr/14
- WEBhttps://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098
- WEBhttps://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f
- WEBhttps://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a
- WEBhttps://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf
- WEBhttps://lists.debian.org/debian-lts-announce/2025/02/msg00010.html