#VU126315 Improper Check for Unusual or Exceptional Conditions in DOMPurify
Published: April 16, 2026
DOMPurify
Cure53
Description
The vulnerability allows a remote attacker to execute arbitrary script in the parent document.
The vulnerability exists due to improper check for unusual or exceptional conditions in the IN_PLACE sanitization path when sanitizing a DOM element originating from a different window or realm. A remote attacker can cause the application to sanitize a crafted cross-window DOM element with IN_PLACE enabled to execute arbitrary script in the parent document.
Only the IN_PLACE DOM node path is affected. Exploitation requires the application to pass an element from a different window object, such as a same-origin iframe or opened window, and then render that element into the main document after sanitization.