Skip to main content
← All vulnerabilities
CVE-2026-116803EUVD-2026-110511GHSA-MRV2-3PQR-J5JRGHSA-77H4-4VQJ-J7VC

DOMPurify before 3.4.17 DOM XSS via IN_PLACE Hook-Detached Subtrees

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.4.17
None on Exploit-DB, Metasploit or GitHub

Summary

DOMPurify, a widely used JavaScript library for sanitizing HTML, is affected when its IN_PLACE hook removes a parent or sibling node, which can leave attacker-supplied elements unsanitized. This allows malicious event handlers, such as an image onerror attribute, to run after sanitization and enables DOM-based cross-site scripting in web applications that use the library.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

DOMPurify before 3.4.17 contains a cross-site scripting vulnerability that allows attackers to keep event handlers armed when an IN_PLACE hook removes a parent or sibling node. Attacker markup in detached subtrees is never walked or neutralized, so handlers like img onerror fire after sanitize() returns, causing DOM XSS.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • cure53 DOMPurify

    fixed in 3.4.17

  • dompurifynpm

    fixed in 3.4.17

References 2

GitHub · cure53/DOMPurify

vulncheck.com