What’s Vulnerable › Vulnerabilities
CVE-2024-47875: DOMPurify nesting-based mXSS
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-10-11 · updated 2026-06-17
- Weakness: CWE-79
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 products
- cure53 DOMPurify: before 2.5.0; from 3.0.0 before 3.1.3 — fixed in 2.5.0, 3.1.3
How to fix
Upgrade to a fixed version: cure53 DOMPurify 2.5.0, 3.1.3. Check the vendor advisory for mitigations.
References
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf
- http://seclists.org/fulldisclosure/2025/Apr/14
- https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html
Get alerted when CVE-2024-47875 or the next vulnerability affects your stack