Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-116804 EUVD-2026-110512GHSA-6vxf-252m-8g79GHSA-cg2g-xh64-v4q7

DOMPurify from 3.4.4 before 3.4.17 SAFE_FOR_TEMPLATES Bypass via Shadow Root Content

Published Oct 26, 2026 · Updated Nov 2, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
cure53 DOMPurify 3.4.4 – < 3.4.17 3.4.17

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-dompurify 3.4.17+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-dompurify No fix yet —
Ubuntu 26.04 LTS node-dompurify No fix yet —
Ubuntu 24.04 LTS node-dompurify No fix yet —
Ubuntu 22.04 LTS node-dompurify No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify >= 3.4.4, < 3.4.17 3.4.17 GHSA-cg2g-xh64-v4q7

References