Description
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).
Recommendation
Update the dompurify package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.2.4
- Patched version(s): 3.2.4
References
Related Issues
- Solid Lacks Escaping of HTML in JSX Fragments allows for Cross-Site Scripting (XSS) - CVE-2025-27109
- Vega allows Cross-site Scripting via the vlSelectionTuples function - CVE-2025-25304
- tarteaucitron Cross-site Scripting (XSS) - CVE-2025-1467
- jsondiffpatch is vulnerable to Cross-site Scripting (XSS) via HtmlFormatter::nodeBegin - CVE-2025-9910
You might also like:
- Tags:
- npm
- dompurify
Anything's wrong? Let us know Last updated on June 30, 2025


