cure53/dompurify · Security
DOMPurify allows Cross-site Scripting (XSS)
- GHSA ID
- GHSA-vhxf-7vqr-mrjg
- CVE ID
- CVE-2025-26791
- Severity
- medium
- Published
- Updated
- CVSS
- 4.5 · CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
- CVSS v3
- 4.5 · CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
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).
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-26791 ↗
- https://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02 ↗
- https://ensy.zip/posts/dompurify-323-bypass ↗
- https://github.com/cure53/DOMPurify/releases/tag/3.2.4 ↗
- https://nsysean.github.io/posts/dompurify-323-bypass ↗
- https://github.com/advisories/GHSA-vhxf-7vqr-mrjg ↗