Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-49978 EUVD-2026-44452GHSA-rp9w-3fw7-7cwq

DOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content

Published Jul 14, 2026 · Updated Jul 21, 2026 · Assigned by GitHub_M

Description

DOMPurify is a DOM-only cross-site scripting sanitizer for HTML, MathML, and SVG. Prior to 3.4.7, DOMPurify IN_PLACE sanitization could skip shadow contents attached to an element inside <template>.content, allowing attacker-controlled markup such as event handlers, JavaScript URLs, or scripts to survive and execute when an application cloned and inserted the sanitized template. This issue is fixed in version 3.4.7.

Affected products

VendorProductAffectedFixed
cure53 DOMPurify < 3.4.6 —

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.12+dfsg-1 —
Debian 13 node-dompurify No fix yet —
Debian 12 node-dompurify No fix yet —
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 —
Ubuntu 18.04 LTS dompurify.js No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS dompurify.js No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 rh-podman-desktop 1.1.2-1.el10_2 RHSA-2026:57590
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed argocd-cli 3.6.1-1.1 openSUSE-SU-2026:12452-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.191.0-r0 —
Wolfi rolling nextcloud-server-33 33.0.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm dompurify < 3.4.7 3.4.7 GHSA-rp9w-3fw7-7cwq

Advisories 4

References