CVE-2026-116804 DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content
MediumCVSS 5.1
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
7 packages: 3 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/node-dompurify(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-dompurify(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/node-dompurify(Debian 14) | < 3.4.17+dfsg-1; = 3.1.7+dfsg+~3.0.5-2; = 3.2.5+dfsg-1; = 3.3.2+dfsg-1 +9 more | 3.4.17+dfsg-1 | Fixed |
| npm dompurify | >= 3.4.4, < 3.4.17 | 3.4.17 | Fixed |
| npm dompurify(npm) | >= 3.4.4, < 3.4.17 | 3.4.17 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm dompurify | >= 3.4.4, < 3.4.17 | 3.4.17 |
| debian/node-dompurify(Debian:14) | < 3.4.17+dfsg-1 | 3.4.17+dfsg-1 |
| debian/node-dompurify(Debian:14) | = 3.1.7+dfsg+~3.0.5-2 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.2.5+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.3.2+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.3.3+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.3.3+dfsg-2 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.1+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.12+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.13+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.13+dfsg-2 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.16+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.2+dfsg-1 | No fix listed |
| debian/node-dompurify(Debian:14) | = 3.4.5+dfsg-1 | No fix listed |
| ubuntu/node-dompurify(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/node-dompurify(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/node-dompurify(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/node-dompurify(Ubuntu:26.10) | All versions | No fix listed |
| npm dompurify(npm) | >= 3.4.4, < 3.4.17 | 3.4.17 |
References
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2561479 issue-tracking
- www.cve.org
- nvd.nist.gov
- GitHub Security Advisory (GHSA-cg2g-xh64-v4q7) exploit vendor-advisory
- VulnCheck Advisory: DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content third-party-advisory
- Debian Security Tracker CVE-2026-116804 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- github.com
- github.com
- github.com product
- github.com
- ENISA EUVD EUVD-2026-110512 third-party-advisory