P3 · MediumCVSS 6.1EPSS 0.5%
DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
- CVE-2026-140391
- GHSA-94h2-9755-qfgp
- GHSA-qm7q-q8h9-jg8q
- EUVD-2026-140252
Description
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.
Text from the CVE.org record.
Recommendation
cure53 DOMPurify
- If you run a version before 3.4.18update to 3.4.18 or later
dompurify
- If you run a version before 3.4.18update to 3.4.18 or laterdompurify 3.4.18 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
cure53 DOMPurify
Affected versions Fixed in before 3.4.18 3.4.18 dompurifynpm
Affected versions Fixed in before 3.4.18 3.4.18
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.