Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-66010: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in cure53 DOMPurify

0
Medium
VulnerabilityCVE-2026-66010cvecve-2026-66010
Published: 07/24/2026 (07/24/2026, 12:07:57 UTC)
Source: CVE Database V5
Vendor/Project: cure53
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

dompurify
pkg:npm/dompurify
Affected versions
<3.4.12

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

AILast updated: 07/24/2026, 13:07:41 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses