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
- DOMpurify has a nesting-based mXSS - CVE-2024-47875
- ReDoS Vulnerability in ua-parser-js version - CVE-2022-25927
- mpregular vulnerable to prototype pollution - CVE-2025-57323
- node-cube vulnerable to prototype pollution - CVE-2025-57348
- Tags:
- npm
- dompurify
Anything's wrong? Let us know Last updated on June 30, 2025