# CVE-2024-47875: DOMPurify nesting-based mXSS

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.13%, higher than 67% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-11T14:59:27.641Z
- Modified: 2026-09-10T03:50:19.701Z
- Also known as: GHSA-gx9m-whjm-85jf
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- cure53 DOMPurify: < 2.5.0; < 3.1.3; before 2.5.0; from 3.0.0 before 3.1.3
- dompurify (npm): before 2.5.0; from 3.0.0 before 3.1.3

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H`
- GitHub: CVSS:3.1 10.0 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf> (exploit, third-party-advisory, web)
- <https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f> (patch, web)
- <https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a> (patch, web)
- <https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098> (product, 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)

## Sources

- CVE List: [CVE-2024-47875](https://www.cve.org/CVERecord?id=CVE-2024-47875), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-gx9m-whjm-85jf](https://github.com/advisories/GHSA-gx9m-whjm-85jf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-47875](https://nvd.nist.gov/vuln/detail/CVE-2024-47875), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-47875 · Whole record: https://cve.day/CVE-2024-47875.json · Rebuilt by cve.day 2026-11-25T22:58:46.659Z
