DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| cure53DOMPurify |
< 3.4.18→ 3.4.18 |
3.4.18 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-140391 node-dompurify No fixed version in this record
Original description The description as published by the source.
DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions past sanitization using nested form elements or orphaned end tags. When the sanitized output is reparsed via innerHTML, split braces merge into live {{...}} expressions that Vue or AngularJS evaluate, executing attacker JavaScript in victims' browsers.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- web github.com