NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-26791: DOMPurify allows Cross-site Scripting (XSS)

mediumCVSS 3.1 4.5GHSA-vhxf-7vqr-mrjg

DOMPurify before 3.2.4 has an incorrect template literal regular expression when SAFEFORTEMPLATES is set to true, sometimes leading to mutation cross-site scripting (mXSS).

Published Feb 14, 2025 · Updated Jun 30, 2025

Affected packages

dompurify

Ecosystem
npm
Affected
< 3.2.4
Fixed in
3.2.4
Check
npm ls dompurify

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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).

Credited to julianladisch.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries