What’s Vulnerable › Vulnerabilities
CVE-2026-116804: DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content
- Severity: medium (CVSS 6.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-26 · updated 2026-10-27
- Weakness: CWE-79
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.
Affected products
- Npm Dompurify: from 3.4.4 before 3.4.17 — fixed in 3.4.17
- cure53 DOMPurify: from 3.4.4 before 3.4.17 — fixed in 3.4.17
How to fix
Upgrade to a fixed version: Npm Dompurify 3.4.17; cure53 DOMPurify 3.4.17. Check the vendor advisory for mitigations.
References
- https://github.com/cure53/DOMPurify/security/advisories/GHSA-cg2g-xh64-v4q7
- https://www.vulncheck.com/advisories/dompurify-from-3.4.4-before-3.4.17-safe-for-templates-bypass-via-shadow-root-content
Get alerted when CVE-2026-116804 or the next vulnerability affects your stack