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
- Unknown vulnerability in Coinbase Wallet SDK - Vulnerability
- DOMpurify has a nesting-based mXSS - CVE-2024-47875
- DOMPurify vulnerable to tampering by prototype polution - CVE-2024-48910
- ReDoS Vulnerability in ua-parser-js version - CVE-2022-25927
- Tags:
- npm
- dompurify
Anything's wrong? Let us know Last updated on June 30, 2025