CVE-2026-66010 PUBLISHED

DOMPurify before 3.4.12 Hook Bypass via CUSTOM_ELEMENT_HANDLING

Assigner: VulnCheck
Reserved: 23.07.2026 Published: 24.07.2026 Updated: 24.07.2026

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.

Metrics

CVSS Vector: 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
CVSS Score: 5.1

Product Status

Vendor cure53
Product DOMPurify
Versions Default: unaffected
  • affected from 0 to 3.4.12 (excl.)
  • Version 3.4.12 is unaffected

Credits

  • Rikuxx0 reporter

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE