Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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