Skip to main content
← All vulnerabilities
CVE-2026-66010GHSA-C2J3-45GR-MQC4

DOMPurify before 3.4.12 Hook Bypass via CUSTOM_ELEMENT_HANDLING

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.4.12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cure53 DOMPurify

    fixed in 3.4.12

  • dompurifynpm

    fixed in 3.4.12

References 2

GitHub · cure53/DOMPurify

vulncheck.com