#VU126316 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in DOMPurify
Published: April 16, 2026
DOMPurify
Cure53
Description
The vulnerability allows a remote attacker to execute arbitrary script in the victim's browser.
The vulnerability exists due to improper neutralization of input during web page generation in DOMPurify sanitize() configuration handling when reusing a shared DOMPurify instance across sanitize() calls with ADD_ATTR or ADD_TAGS supplied first as a function predicate and later as an array. A remote attacker can submit crafted HTML to trigger stale predicate state and execute arbitrary script in the victim's browser.
The issue can bypass explicit FORBID_TAGS settings and affects cases where a shared instance is used across different sanitization contexts.