Vulnerability · Published Oct 11, 2024 · Assigned by GitHub_M
CVE-2024-47875DOMPurify nesting-based mXSS
Critical 10.0
In plain English
A critical-severity cross-site scripting in DOMPurify from cure53. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)10.0Critical
Exploit odds (30 days)1.1%top 33.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC
Official 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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | grafana | 9.2.10-20.el8_10 | ALSA-2024:8327 |
| AlmaLinux:9 | grafana | 9.2.10-19.el9_4 | ALSA-2024:8678 |
| AlmaLinux:9 | grafana | 10.2.6-7.el9_5 | ALSA-2024:9473 |
| AlmaLinux:8 | grafana-selinux | 9.2.10-20.el8_10 | ALSA-2024:8327 |
| AlmaLinux:9 | grafana-selinux | 9.2.10-19.el9_4 | ALSA-2024:8678 |
| AlmaLinux:9 | grafana-selinux | 10.2.6-7.el9_5 | ALSA-2024:9473 |
| Debian:12 | cacti | 1.2.24+ds1-1+deb12u2 | DEBIAN-CVE-2024-47875 |
| Debian:13 | cacti | 1.2.26+ds1-1 | DEBIAN-CVE-2024-47875 |
| Debian:14 | cacti | 1.2.26+ds1-1 | DEBIAN-CVE-2024-47875 |
| Debian:12 | node-dompurify | 2.4.1+dfsg+~2.4.0-2 | DSA-5790-1 |
| Debian:12 | node-dompurify | 2.4.1+dfsg+~2.4.0-2 | DEBIAN-CVE-2024-47875 |
| Debian:13 | node-dompurify | 3.1.6+dfsg+~3.0.5-1 | DEBIAN-CVE-2024-47875 |
| Debian:14 | node-dompurify | 3.1.6+dfsg+~3.0.5-1 | DEBIAN-CVE-2024-47875 |
| Rocky Linux:8 | grafana | 0:9.2.10-20.el8_10 | RLSA-2024:8327 |
| Rocky Linux:9 | grafana | 0:9.2.10-19.el9_4 | RLSA-2024:8678 |
| Rocky Linux:9 | grafana | 0:10.2.6-7.el9_5 | RLSA-2024:9473 |
| Ubuntu:22.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2024-47875 |
| Ubuntu:24.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2024-47875 |
| Ubuntu:25.10 | node-dompurify | no fix listed | UBUNTU-CVE-2024-47875 |
| Ubuntu:26.04:LTS | node-dompurify | no fix listed | UBUNTU-CVE-2024-47875 |
| Ubuntu:26.10 | node-dompurify | no fix listed | UBUNTU-CVE-2024-47875 |
| npm | dompurify | 2.5.0 | GHSA-gx9m-whjm-85jf |
| npm | dompurify | 3.1.3 | GHSA-gx9m-whjm-85jf |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf x_refsource_CONFIRM
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f x_refsource_MISC
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a x_refsource_MISC
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098 x_refsource_MISC
- http://seclists.org/fulldisclosure/2025/Apr/14
- https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html