CVE-2026-49978
MEDIUMDOMPurify IN_PLACE Sanitization Bypass via Attached Shadow Root Inside <template>.content
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/cure53/DOMPurify/security/advisories/GHSA-rp9w-3fw7-7cwq
X_Refsource_Misc x_refsource_misc
https://github.com/cure53/DOMPurify/commit/ca30f070c360df162a3e3848e80e6fd3c9e74bff
X_Refsource_Misc x_refsource_misc
https://github.com/cure53/DOMPurify/releases/tag/3.4.7
Scores
CVSS v3
6.1
EPSS
0.0033
EPSS Percentile
26.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (2)
cure53/dompurify
< 3.4.7
cure53/DOMPurify
< 3.4.6
Published
Jul 14, 2026
Tracked Since
Jul 15, 2026