DOMPurify versions prior to 3.4.17 have a vulnerability in the IN_PLACE sanitization mode where hooks that remove a parent or sibling node leave detached subtrees with active event handlers unneutralized. This allows event handlers such as <img onerror> to fire after sanitize() returns, potentially leading to DOM-based XSS. The issue arises because the sanitization process only neutralizes the node directly removed by the hook, not other detached nodes like parents or siblings. This behavior breaks the expected guarantee that detached subtrees are neutralized inline in IN_PLACE mode.