HighGHSA-gx9m-whjm-85jfCVE-2024-47875

DOMpurify has a nesting-based mXSS

Published 11 Oct 2024 · Updated 10 Sept 2026

Affected packages

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.0
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.3

Details

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

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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.