// Security Advisory Triage
DOMPurify 3.4.17 patches incomplete fix for event handler bypass
GitHub advisories — npm · published 2026-10-23 04:53 UTC
WHAT CHANGEDGitHub published GHSA-mrv2-3pqr-j5jr on 2026-10-22, rating it high severity. DOMPurify versions before 3.4.17 leave event handlers armed on detached DOM subtrees when IN_PLACE mode is used and a hook removes a parent or sibling node. This is an incomplete fix for the prior CVE GHSA-p98j-92pf-mc4p.
WHY IT MATTERSArmed event handlers on detached nodes can execute attacker-controlled code when those nodes are later reattached or manipulated, bypassing DOMPurify's sanitization. Applications using IN_PLACE mode with custom hooks that remove nodes remain exposed despite patching the earlier vulnerability.
WHAT TO DOUpgrade dompurify to 3.4.17 or later. If you use IN_PLACE mode with hooks that remove parent or sibling nodes, prioritize this update — the prior patch was insufficient.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-mrv2-3pqr-j5jr +summary: DOMPurify IN_PLACE: hook that removes a parent or sibling leaves the detached subtree's event handlers armed (incomplete fix for GHSA-p98j-92pf-mc4p) +severity: high +published_at: 2026-10-22T16:24:52Z +cve_id: +vulnerabilities[].package.name: dompurify +vulnerabilities[].first_patched_version: 3.4.17
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | DOMPurify is a standard dependency in web and Node.js services. High-severity DOM sanitization bypass affects security posture. |
| signals | known_vulnerability_in_widely_used_package · dompurify_is_common_dependency · high_severity_rating · incomplete_fix_for_prior_cve · new_patched_version_available · event_handler_security_issue |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |