DOMPurify before 3.4.18 contains a SAFE_FOR_TEMPLATES bypass that allows attackers to smuggle template expressions
Source GCVE Database
Not known to be exploited · CVSS 5.1 Medium : upgrade to 3.4.18 when convenient.
Data as of 1 Dec 2026, 16:30 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 5.1 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 6.1 |
- Patch
- Available – fixed in 3.4.18
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade DOMPurify to 3.4.18.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| cure53DOMPurify | Affected
| Fixed in
|
npmDOMPurifypkg:npm/DOMPurifyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade DOMPurify to version 3.4.18 or later, where this SAFE_FOR_TEMPLATES bypass vulnerability is fixed. No other mitigations are specified.
Description
DOMPurify versions before 3.4.18 have a vulnerability that allows attackers to bypass the SAFE_FOR_TEMPLATES protection. This bypass enables smuggling of template expressions through nested form elements or orphaned end tags. When the sanitized output is inserted into the DOM using innerHTML, these smuggled expressions merge into live template expressions (e.g., {{...}}) that frameworks like Vue or AngularJS evaluate, resulting in execution of attacker-controlled JavaScript in users' browsers.