MediumGHSA-vhxf-7vqr-mrjgCVE-2025-26791
DOMPurify allows Cross-site Scripting (XSS)
Published 14 Feb 2025 · Updated 10 Sept 2026
Affected package
dompurifynpm
- Affected
- <3.2.4
- Fixed in
- 3.2.4
Update to the fixed version for your release line, for example:
npm install dompurify@3.2.4Details
DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFE_FOR_TEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).
Is GHSA-vhxf-7vqr-mrjg 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.