CVE-2026-140391
published medium CVSS 4.0 · 5.1DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cure53 | — | DOMPurify0 to < 3.4.18 (affected · semver) · 3.4.18 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cure53 | DOMPurify | 0 to < 3.4.18 (affected · semver)3.4.18 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2- GitHub Security Advisory (GHSA-qm7q-q8h9-jg8q) https://github.com/cure53/DOMPurify/security/advisories/GHSA-qm7q-q8h9-jg8q
- VulnCheck Advisory: DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS https://www.vulncheck.com/advisories/dompurify-before-3.4.18-safe-for-templates-bypass-leading-to-xss
Provider assertions
2VulnCheck · cna
DOMPurify before 3.4.18 SAFE_FOR_TEMPLATES Bypass Leading to XSS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 55cd7bdf4aaf4db537afa3c97a2901afc085c784b810968d08b1df19218f8f1b
- Ingested
- 01 Dec 2026, 22:04:38 UTC
- Source record
- Official CVE record