CVE-2024-47875: DOMpurify has a nesting-based mXSS
Affects dompurifySource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 10.0 Critical : upgrade to 2.5.0 as a priority.
Data as of 29 Oct 2026, 22:52 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 10.0 |
|---|
- Patch
- Available – fixed in 2.5.0, 3.1.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 11 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade dompurify to 2.5.0; dompurify to 3.1.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmdompurify | Affected
| Fixed in
|
| npmdompurify | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
DOMpurify was vulnerable to nesting-based mXSS fixed by [0ef5e537](https://github.com/cure53/DOMPurify/tree/0ef5e537a514f904b6aa1d7ad9e749e365d7185f) (2.x) and [merge 943](https://github.com/cure53/DOMPurify/pull/943) Backporter should be aware of GHSA-mmhx-hmjr-r674 (CVE-2024-45801) when cherry-picking POC is avaible under [test](https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098)
References
- github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2024-47875 (opens in a new tab)
- github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f (opens in a new tab)
- github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a (opens in a new tab)
- github.com/cure53/DOMPurify (opens in a new tab)
- github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/02/msg00010.html (opens in a new tab)
- seclists.org/fulldisclosure/2025/Apr/14 (opens in a new tab)