GitHub Advisoryadvisory · npm
GHSA-gx9m-whjm-85jf DOMpurify has a nesting-based mXSS
HIGH
Official page ↗
- Aliases
- CVE-2024-47875
- Ecosystem
- npm
- Packages
- dompurify
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H
- Weaknesses
- CWE-79
- Reviewed
- 2024-10-11
Affected packages
• npm dompurify: < 2.5.0 → fixed in 2.5.0
• npm dompurify: >= 3.0.0, < 3.1.3 → fixed in 3.1.3
Description
DOMpurify was vulnerable to nesting-based mXSS
fixed by 0ef5e537 (2.x) and
merge 943
Backporter should be aware of GHSA-mmhx-hmjr-r674 (CVE-2024-45801) when cherry-picking
POC is avaible under test
Related
Alias · CVE (1)
- CVE-2024-47875 DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf web
- https://nvd.nist.gov/vuln/detail/CVE-2024-47875 advisory
- https://github.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f web
- https://github.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a web
- https://github.com/cure53/DOMPurify package
- https://github.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098 web
- https://lists.debian.org/debian-lts-announce/2025/02/msg00010.html web
- http://seclists.org/fulldisclosure/2025/Apr/14 web