CVE-2026-66010

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductCure53 Dompurify
PublishedJul 24, 2026
First seenJul 24, 2026

How to fix

Update
  • cure53 dompurify3.4.12 or later
  • dompurify3.4.12 or later

Affected products

ProductAffected versionsFixed in
cure53 dompurifyv < 3.4.123.4.12
dompurifynpmv < 3.4.123.4.12

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.