CVE-2026-116804
DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content
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.
Fixes and workarounds
Fix
dompurify (npm): OSV reports a fixed version 3.4.17. Check the advisory for supported release branches.
Source: OSV GHSA-cg2g-xh64-v4q7Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| DOMPurify cure53 dompurify
npm |
≥ 3.4.4; < 3.4.17 (affected, semver) 3.4.17 (unaffected, semver) Other versions: unaffected |
CNA: VulnCheck |
dompurifydompurify
npm |
≥ 3.4.4; < 3.4.17 (affected, semver); OSV events: introduced 3.4.4; fixed 3.4.17Source events (semver)
Other versions: unaffected |
OSV GHSA-cg2g-xh64-v4q7 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 4.0 / 5.1 medium |
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 | CNA: VulnCheck |
| 3.1 / 6.1 medium |
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | CNA: VulnCheck |
Exploit evidence
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7
exploit · ADP: CISA-ADP
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7CNA: VulnCheck · vendor-advisory
- https://www.vulncheck.com/advisories/dompurify-from-3.4.4-before-3.4.17-safe-for-templates-bypass-via-shadow-root-contentCNA: VulnCheck · third-party-advisory
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7ADP: CISA-ADP · exploit
- https://github.com/advisories/GHSA-cg2g-xh64-v4q7OSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-cg2g-xh64-v4q7OSV / GitHub Security Advisories · osv
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.