GitHub Advisoryadvisory · npm
GHSA-vhxf-7vqr-mrjg DOMPurify allows Cross-site Scripting (XSS)
MEDIUM
Official page ↗
- Aliases
- CVE-2025-26791
- Ecosystem
- npm
- Packages
- dompurify
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2025-02-14
Affected packages
• npm dompurify: < 3.2.4 → fixed in 3.2.4
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).
Related
Alias · CVE (1)
- CVE-2025-26791 DOMPurify before 3.2.4 has an incorrect template literal regular expression, sometimes leading to mutation cross-site scripting (mXSS). vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-26791 advisory
- https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02 web
- https://ensy.zip/posts/dompurify-323-bypass web
- https://github.com/cure53/DOMPurify package
- https://github.com/cure53/DOMPurify/releases/tag/3.2.4 web
- https://nsysean.github.io/posts/dompurify-323-bypass web