dompurify is vulnerable to Cross-Site Scripting (XSS)
31
CVE Score
Low
Cross-Site Scripting (XSS)
DOMPurify's _handleHookDetachedNode only neutralizes a subtree when a hook detaches its current node from the live tree. When a hook detaches that node's parent or an unvisited sibling, the walk skips that subtree and does not add it to DOMPurify.removed, so its original event handlers can still run. An <img onerror> that is already loading when a hook removes an ancestor or sibling can still run after sanitize() returns, an incomplete fix for the detached node hardening added for GHSA-p98j-92pf-mc4p. The fix neutralizes parent and sibling removals the same way.
Upgrade the dompurify library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you run DOMPurify in IN_PLACE mode with a hook that can detach a node other than the one the hook was called for.
0.0.1 - 3.4.16
Fixed in 3.4.17dompurify is vulnerable to Cross-Site Scripting (XSS) in versions 0.0.1 - 3.4.16.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.