Cross-site scripting in DOMPurify - CVE-2026-49978

 

Cross-site scripting in DOMPurify - CVE-2026-49978

Published: May 27, 2026


Vulnerability identifier: #VU132386
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Green
CVE-ID: CVE-2026-49978
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Cure53
Affected software:
DOMPurify

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.

The vulnerability exists due to cross-site scripting in template content sanitization when processing HTML containing a template element with an attached shadow root inside template.content. A remote attacker can supply crafted HTML that survives sanitization to execute arbitrary script in the victim's browser.

Exploitation occurs when the application clones the template and inserts the result into the page.


How to mitigate CVE-2026-49978

Install security update from vendor's website.

Sources