CVE-2026-116804 DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content
- Exploited in the wild
- Not known
- Fix
- Available
What is CVE-2026-116804?
CVE-2026-116804 is a medium-severity vulnerability in cure53 DOMPurify, published on 26 Oct 2026.
Official 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.
Weakness: CWE-79
Which versions are affected by CVE-2026-116804?
2 open source packages ship an affected version, including dompurify.
| Package | Affected | Fixed in |
|---|---|---|
dompurify npm | From 3.4.4 | 3.4.17 |
dompurify npm | From 3.4.4 | 3.4.17 |
How do I fix CVE-2026-116804?
Upgrade dompurify to 3.4.17 or later.
Is CVE-2026-116804 being exploited?
There is no known exploitation of CVE-2026-116804 in the wild and no public exploit code.
Sources
Also known as CLSA-2026-1793120002, DEBIAN-CVE-2026-116804, ECHO-1dd3-7228-30d3, GHSA-6vxf-252m-8g79, GHSA-cg2g-xh64-v4q7, ROOT-APP-NPM-GHSA-cg2g-xh64-v4q7 and 1 more.