CVEscure53CVE-2026-116804Published Oct 26, 23:05 · Updated Oct 26, 23:05 UTC
6.1
MediumCVSS 3.1 · from VulnCheck
CVE-2026-116804

DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content

DOMPurify · Cross-site scripting · CWE-79
AffectedDOMPurify
FixUpdate to 3.4.17 or newer
PublishedOct 26, 23:05 · VulnCheck
ScoredOct 26 · 6.1 · VulnCheck
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:11 UTC

What we know

No known exploitation. CISA KEV, checked 22:11 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
Someone has to open, click or run something first. CVSS: user interaction required.

Description

DOMPurify from 3.4.4 before 3.4.17 contains a SAFE_FOR_TEMPLATES bypass that lets attackers preserve template expressions in attached shadow roots when using RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE modes. Attackers can split expressions across text nodes separated by disallowed elements, which merge after removal and are evaluated by downstream template engines for cross-site scripting.

From VulnCheck

Affected and fixed versions

ProductAffectedFixed inDOMPurify3.4.4 – before 3.4.173.4.17DOMPurifyNot affected3.4.17

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

GitHub Security Advisory (GHSA-cg2g-xh64-v4q7) · github.comvendor advisoryVulnCheck Advisory: DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content · vulncheck.comthird party advisory

Other CVEs in DOMPurify

All 31 →
6.1DOMPurify before 3.4.17 DOM XSS via IN_PLACE Hook-Detached Subtrees · CVE-2026-116803Oct 266.1DOMPurify before 3.4.17 XSS via SMIL attributeName Guard Bypass in XHTML Mode · CVE-2026-116802Oct 266.1DOMPurify before 3.4.16 XSS via IN_PLACE Returned Rawtext Root · CVE-2026-109345Oct 12