Improper access control in DOMPurify - #VU137374
Published: July 13, 2026
DOMPurify
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary script code.
The vulnerability exists due to improper access control in the CUSTOM_ELEMENT_HANDLING sanitization logic when processing allowed custom elements. A remote attacker can supply specially crafted HTML content to execute arbitrary script code.
The bypass affects the afterSanitizeElements hook and the payload becomes executable only after a custom element writes sanitized data into innerHTML.