CVE-2024-47875: cure53 DOMPurify · Cross-site Scripting
Affects cure53 DOMPurifySource CVE Database V5
Not known to be exploited · CVSS 10.0 Critical : upgrade to 3.1.3 or 2.5.0 as a priority.
Data as of 26 Oct 2026, 15:59 UTC
- EPSS
- 1.1% chance of exploitation in 30 days – higher than 66% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 3.1.3, 2.5.0
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
Weaponised: 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 26 Oct 2026.
What to do
Upgrade cure53 DOMPurify to 3.1.3 or 2.5.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmdompurifypkg:npm/dompurifyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately audit their web applications and libraries to identify usage of DOMPurify versions prior to 2.5.0 or 3.1.3. The primary mitigation is to upgrade DOMPurify to version 2.5.0 or later, or 3.1.3 or later, where the vulnerability is fixed. Implement Content Security Policy (CSP) headers with strict script-src directives to limit script execution sources and reduce impact of potential XSS. Employ runtime application self-protection (RASP) tools that can detect and block XSS payloads dynamically. Conduct thorough penetration testing focusing on nested input scenarios to validate remediation. Educate development teams about secure coding practices related to input sanitization and nested content handling. Monitor web application logs and security alerts for suspicious activity indicative of attempted exploitation. Finally, maintain an incident response plan tailored to XSS incidents to enable rapid containment and recovery.
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.
References
- github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf (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/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js (opens in a new tab)
- seclists.org/fulldisclosure/2025/Apr/14 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/02/msg00010.html (opens in a new tab)