DOMPurify from 3.4.4 before 3.4.17 contains a SAFE_FOR_TEMPLATES bypass that lets attackers preserve template
Source GCVE Database
Not known to be exploited · CVSS 5.1 Medium : upgrade to 3.4.17 when convenient.
Data as of 27 Oct 2026, 01:59 UTC
- Patch
- Available – fixed in 3.4.17
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 26 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade DOMPurify to 3.4.17.
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
A fix is available in DOMPurify version 3.4.17 and later. Users should upgrade to version 3.4.17 or above to remediate this vulnerability. Since no vendor advisory or patch links were provided, confirm patch availability from the official DOMPurify repository or vendor channels before applying updates.
Description
DOMPurify versions from 3.4.4 up to but not including 3.4.17 contain a vulnerability where the SAFE_FOR_TEMPLATES feature can be bypassed. This allows attackers to preserve template expressions in attached shadow roots when using certain DOMPurify return modes. By splitting expressions across text nodes separated by disallowed elements, attackers can cause these expressions to merge after sanitization and be evaluated by downstream template engines, leading to cross-site scripting (XSS).