CVE-2026-140391
DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
- Severity
- medium CVSS 5.1 (v4.0)
- Affects
- DOMPurify · cure53
- Weakness
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
- Published
- 1 December 2026 by VulnCheck
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.