CVE-2026-66010: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
CVE-2026-66010 is a medium severity cross-site scripting (XSS) vulnerability in DOMPurify before version 3.4.12. The issue arises because the afterSanitizeElements hook is not executed for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck. This allows certain attributes to bypass security policies, enabling attackers to preserve sensitive attributes on custom elements that can later be re-injected into innerHTML sinks, resulting in second-order XSS.
AI Analysis
Technical Summary
DOMPurify versions prior to 3.4.12 fail to execute the afterSanitizeElements hook for custom elements that are permitted through the CUSTOM_ELEMENT_HANDLING.tagNameCheck mechanism. This failure allows attributes on these custom elements to bypass the intended application security policies. As a result, attackers can maintain sensitive attributes on these elements, which may later be re-inserted into innerHTML sinks, creating opportunities for second-order cross-site scripting (XSS) attacks. The vulnerability has a CVSS 4.0 base score of 5.1, indicating a medium severity level.
Potential Impact
The vulnerability allows attackers to bypass DOMPurify's sanitization for certain custom elements, preserving sensitive attributes that can be re-injected into the DOM. This can lead to second-order XSS attacks, potentially enabling the execution of malicious scripts in the context of the affected web application. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.12 or later, where this issue is fixed. Patch status is not explicitly confirmed in the vendor advisory, but the affected versions are clearly stated as those before 3.4.12, indicating that 3.4.12 includes the fix. No other mitigation or temporary workaround is provided.
CVE-2026-66010: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify
Description
CVE-2026-66010 is a medium severity cross-site scripting (XSS) vulnerability in DOMPurify before version 3.4.12. The issue arises because the afterSanitizeElements hook is not executed for custom elements allowed via CUSTOM_ELEMENT_HANDLING.tagNameCheck. This allows certain attributes to bypass security policies, enabling attackers to preserve sensitive attributes on custom elements that can later be re-injected into innerHTML sinks, resulting in second-order XSS.
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
DOMPurify versions prior to 3.4.12 fail to execute the afterSanitizeElements hook for custom elements that are permitted through the CUSTOM_ELEMENT_HANDLING.tagNameCheck mechanism. This failure allows attributes on these custom elements to bypass the intended application security policies. As a result, attackers can maintain sensitive attributes on these elements, which may later be re-inserted into innerHTML sinks, creating opportunities for second-order cross-site scripting (XSS) attacks. The vulnerability has a CVSS 4.0 base score of 5.1, indicating a medium severity level.
Potential Impact
The vulnerability allows attackers to bypass DOMPurify's sanitization for certain custom elements, preserving sensitive attributes that can be re-injected into the DOM. This can lead to second-order XSS attacks, potentially enabling the execution of malicious scripts in the context of the affected web application. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade DOMPurify to version 3.4.12 or later, where this issue is fixed. Patch status is not explicitly confirmed in the vendor advisory, but the affected versions are clearly stated as those before 3.4.12, indicating that 3.4.12 includes the fix. No other mitigation or temporary workaround is provided.
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/31/2026, 15:25:50 UTC
Last updated: 09/07/2026, 10:52:10 UTC
Views: 69
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.