CVE-2026-66010: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
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.
AI Analysis
Technical Summary
CVE-2026-66010 is a medium severity vulnerability in DOMPurify before version 3.4.12. The issue arises because the afterSanitizeElements hook does not execute for custom elements permitted by CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing certain attributes to bypass sanitization. This can lead to the preservation of sensitive attributes on custom elements, which attackers can exploit to create second-order cross-site scripting (XSS) gadgets by re-injecting these attributes into innerHTML sinks.
Potential Impact
Attackers can exploit this vulnerability to bypass application security policies and inject malicious scripts via custom elements, potentially leading to second-order XSS attacks. This can compromise the integrity of web pages and potentially lead to unauthorized script execution in users' browsers.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade to DOMPurify version 3.4.12 or later once available, as this version addresses the issue by properly executing the afterSanitizeElements hook for custom elements. Until an official fix is confirmed, consider restricting or carefully validating custom elements and their attributes to mitigate risk.
CVE-2026-66010: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
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 v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-66010 is a medium severity vulnerability in DOMPurify before version 3.4.12. The issue arises because the afterSanitizeElements hook does not execute for custom elements permitted by CUSTOM_ELEMENT_HANDLING.tagNameCheck, allowing certain attributes to bypass sanitization. This can lead to the preservation of sensitive attributes on custom elements, which attackers can exploit to create second-order cross-site scripting (XSS) gadgets by re-injecting these attributes into innerHTML sinks.
Potential Impact
Attackers can exploit this vulnerability to bypass application security policies and inject malicious scripts via custom elements, potentially leading to second-order XSS attacks. This can compromise the integrity of web pages and potentially lead to unauthorized script execution in users' browsers.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade to DOMPurify version 3.4.12 or later once available, as this version addresses the issue by properly executing the afterSanitizeElements hook for custom elements. Until an official fix is confirmed, consider restricting or carefully validating custom elements and their attributes to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T19:22:30.643Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a63602d9c2644c7f8f15044
Added to database: 07/24/2026, 12:53:01 UTC
Last enriched: 07/24/2026, 13:07:41 UTC
Last updated: 07/25/2026, 03:02:20 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.