CVE-2025-26791
MEDIUM4.5EPSS 0.11%DOMPurify allows Cross-site Scripting (XSS)
Published: 2/14/2025Modified: 2/4/2026
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).
Affected packages (2)
- Debian/node-dompurifyfrom 0
- npm/dompurifyfrom 0, < 3.2.4
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM4.5 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-26791
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-26791
- PATCHhttps://github.com/cure53/DOMPurify
- WEBhttps://ensy.zip/posts/dompurify-323-bypass
- WEBhttps://github.com/cure53/DOMPurify/commit/d18ffcb554e0001748865da03ac75dd7829f0f02
- WEBhttps://github.com/cure53/DOMPurify/releases/tag/3.2.4
- WEBhttps://nsysean.github.io/posts/dompurify-323-bypass