CVE Catalog

CVE-2026-49978

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.29%

21th percentile - higher than 21% of all known CVEs

Summary

DOMPurify prior to 3.4.7 has an IN_PLACE sanitization vulnerability that skips shadow DOM content inside <template>.content. Attackers can inject HTML with event handlers, JavaScript URLs, or scripts that execute when the sanitized template is cloned and inserted.

Risk Assessment

An attacker can execute arbitrary scripts in the victim's browser, leading to session theft, account takeover, or data theft.

Recommendation

Upgrade DOMPurify to version 3.4.7 or later.

Other vulnerabilities in DOMPurify

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS