Public vulnerability disclosure

CVE-2026-116804

DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content

publishedCWE-79

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.

Technical severity5.1 mediumCVSS 4.0 · CNA: VulnCheck
Published2026-10-26Source updated 2026-11-02
Collected2026-11-023 attributed sources

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-v4q7

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
DOMPurify
cure53
dompurify
npm
≥ 3.4.4; < 3.4.17 (affected, semver)
3.4.17 (unaffected, semver)
Other versions: unaffected
CNA: VulnCheck
dompurify

dompurify
npm
≥ 3.4.4; < 3.4.17 (affected, semver); OSV events: introduced 3.4.4; fixed 3.4.17
Source events (semver)
[
  {
    "introduced": "3.4.4"
  },
  {
    "fixed": "3.4.17"
  }
]

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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
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:NCNA: VulnCheck
3.1 / 6.1
medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NCNA: VulnCheck

Exploit evidence

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide