CVE-2026-140391
5.1medium
DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| cure53 DOMPurify | before 3.4.18 Not affected: 3.4.18 | CVE List |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | 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 |
| VulnCheck | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-140391 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-140391 changed 2026-12-01 | Public domain |