HighGHSA-gx9m-whjm-85jfCVE-2024-47875
DOMpurify has a nesting-based mXSS
Published 11 Oct 2024 · Updated 10 Sept 2026
Affected packages
dompurifynpm
- Affected
- <2.5.0
- Fixed in
- 2.5.0
Update to the fixed version for your release line, for example:
npm install dompurify@2.5.0dompurifynpm
- Affected
- >=3.0.0 <3.1.3
- Fixed in
- 3.1.3
Update to the fixed version for your release line, for example:
npm install dompurify@3.1.3Details
Is GHSA-gx9m-whjm-85jf in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected dompurify, and gives you the command that fixes it.
References
- Linkgithub.com/cure53/DOMPurify/security/advisories/GHSA-gx9m-whjm-85jf
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-47875
- Linkgithub.com/cure53/DOMPurify/commit/0ef5e537a514f904b6aa1d7ad9e749e365d7185f
- Linkgithub.com/cure53/DOMPurify/commit/6ea80cd8b47640c20f2f230c7920b1f4ce4fdf7a
- Packagegithub.com/cure53/DOMPurify
- Linkgithub.com/cure53/DOMPurify/blob/0ef5e537a514f904b6aa1d7ad9e749e365d7185f/test/test-suite.js#L2098
- Linklists.debian.org/debian-lts-announce/2025/02/msg00010.html
- Linkseclists.org/fulldisclosure/2025/Apr/14
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.