CVE-2024-47875 — Vulnerability in dompurify — CVE Details
DOMpurify has a nesting-based mXSS
Summary
Advisory Timeline
- First published October 11, 2024 (731 days ago).
- Last revised September 10, 2026 — 698 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install dompurify@3.1.3
npm install dompurify@2.5.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-79Cross-site Scripting (XSS)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
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-85jfWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-47875ADVISORY
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185fWEB
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7aWEB
- https://github.com/cure53/DOMPurifyPACKAGE
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098WEB
- https://lists.debian.org/debian-lts-announce/2025/02/msg00010.htmlWEB
- https://seclists.org/fulldisclosure/2025/Apr/14WEB
Frequently Asked Questions
- What is CVE-2024-47875?
- DOMpurify has a nesting-based mXSS This vulnerability has been assigned a severity rating of HIGH (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2024-47875?
- CVE-2024-47875 affects dompurify. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-47875 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107375HIGH
JHipster: SQL Injection in the Parameter of JHipster-Generated Reactive (WebFlux + R2DBC) Applicationssort
- CVE-2026-107384HIGH
MariaDB Connector/Node.js: SQL injection through object keys in SET expansion (permitSetMultiParamEntries)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies