CVE-2024-47875
MEDIUM 6.1CVSS 3.1DOMpurify has a nesting-based mXSS
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.
- Published
- 11 Oct 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gx9m-whjm-85jf
- Sources
- NVDJSONOSV GHSA-gx9m-whjm-85jfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H |
| 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
< 2.5.0 | 2.5.0 |
| NVD | cure53 | dompurifycpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.1.3 | 3.1.3 |
| OSV | npm | dompurify | < 2.5.0 | 2.5.0 |
| OSV | npm | dompurify | >= 3.0.0, < 3.1.3 | 3.1.3 |
References
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098 · Product, WEB
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f · Patch, WEB
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a · Patch, WEB
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf · Exploit, Third Party Advisory, WEB
- http://seclists.org/fulldisclosure/2025/Apr/14 · WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47875 · ADVISORY
- https://github.com/cure53/DOMPurify · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 11 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Oct 2024)