CVE-2026-66010
Received Received - Intake

DOM Purify 3.4.12 XSS via Custom Element Sanitization Bypass

Vulnerability report for CVE-2026-66010, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-24

Last updated on: 2026-07-24

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-24
Last Modified
2026-07-24
Generated
2026-07-24
AI Q&A
2026-07-24
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
cure53 dompurify to 3.4.12 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

DOMPurify before version 3.4.12 fails to execute the afterSanitizeElements hook for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck. This allows sensitive attributes on custom elements to bypass sanitization, enabling second-order XSS attacks when these attributes are later re-injected into innerHTML sinks.

Detection Guidance

To detect this vulnerability, check the installed version of DOMPurify on your system. If you are using a version before 3.4.12, your system is vulnerable. Run commands like 'npm list dompurify' for Node.js projects or inspect the version in your package.json file.

Impact Analysis

Attackers can exploit this to preserve malicious attributes on custom elements that bypass security policies. When these elements are re-injected into the DOM via innerHTML, they may trigger cross-site scripting (XSS) attacks, compromising user data or session integrity.

Compliance Impact

This vulnerability could lead to XSS attacks, which may result in unauthorized data access or manipulation. Such breaches could violate GDPR's data protection requirements or HIPAA's safeguards for protected health information, potentially leading to legal and compliance penalties.

Mitigation Strategies

Immediately upgrade DOMPurify to version 3.4.12 or later. If upgrading is not possible, disable the CUSTOM_ELEMENT_HANDLING.tagNameCheck feature or ensure custom elements are properly sanitized through the afterSanitizeElements hook.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-66010. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart