CVE Catalog

CVE-2026-66010

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

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

Summary

DOMPurify before version 3.4.12 fails to execute the afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.

Risk Assessment

The risk is the possibility of cross-site scripting (XSS) attacks by preserving sensitive attributes on custom elements, which could lead to session data theft or other malicious actions in the victim's browser.

Recommendation

Update DOMPurify to version 3.4.12 or later, which correctly executes the afterSanitizeElements hook for custom elements.

Other vulnerabilities in DOMPurify

See all
Original NVD description (English source)

DOMPurify before 3.4.12 fails to execute afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing attributes to bypass application security policies. Attackers can preserve sensitive attributes on custom elements that later re-inject them into innerHTML sinks, creating second-order XSS gadgets.

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