DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
RSS Feed
MEDIUM
CVE-2026-140391
GHSA-qm7q-q8h9-jg8q
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.
Affected Packages
No package information available.
Actions
Advisory Details
| Published: | December 01, 2026 3 days ago |
| Updated: | December 01, 2026 3 days ago |
| CVSS Score: | 5.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
| Source: | Osv |
| UUID: | CVE-2026-140391 |
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140391.json
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-qm7q-q8h9-jg8q
- https://nvd.nist.gov/vuln/detail/CVE-2026-140391
- https://www.vulncheck.com/advisories/dompurify-before-3.4.18-safe-for-templates-bypass-leading-to-xss