DOMPurify <3.4.18 XSS via SAFE_FOR_TEMPLATES bypass (Vue/Angular)
CVE-2026-140391 Published on December 1, 2026
DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
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.
Vulnerability Analysis
CVE-2026-140391 can be exploited with network access. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-140391. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.
Weakness Type
What is a XSS Vulnerability?
The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CVE-2026-140391 has been classified to as a XSS vulnerability or weakness.
Products Associated with CVE-2026-140391
Want to know whenever a new CVE is published for Cure53 Dompurify? stack.watch will email you.
Affected Versions
cure53 DOMPurify:- Before 3.4.18 is affected.
- Version 3.4.18 is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.