CVE-2026-116803

DOMPurify before 3.4.17 DOM XSS via IN_PLACE Hook-Detached Subtrees

Published Oct 26, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

DOMPurify before version 3.4.17 contains a flaw that permits an attacker to preserve active event handlers when an IN_PLACE hook removes a parent or sibling node. Because markup inserted in detached subtrees is not traversed by the sanitizer, handlers such as img onerror continue to exist after sanitize() returns, leading to DOM‑based cross‑site scripting.

Affected Systems

The vulnerability impacts the DOMPurify library from cure53. All releases older than 3.4.17 are affected. Applications that integrate any of these prior versions are therefore susceptible.

Risk and Exploitability

The CVSS base score of 5.1 indicates moderate severity. EPSS data is currently unavailable, and the vulnerability is not listed in CISA’s KEV catalog, suggesting no widespread exploitation yet. Attackers can embed malicious markup into any content that passes through DOMPurify; because detached subtrees are not neutralized, event handlers execute after sanitation, enabling a client‑side attack that does not require server‑side privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade DOMPurify to version 3.4.17 or later to eliminate the flaw.
  • Reconfigure DOMPurify to disallow event attributes (e.g., using the FORBID_EVENT_ATTRIBUTES option) if event handlers are unnecessary for your application.
  • Audit custom IN_PLACE hooks or DOM manipulation code to avoid detaching subtrees that may contain active event handlers; if such detachment is required, sanitize the subtree explicitly before insertion.

Generated by OpenCVE AI on October 27, 2026 at 08:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title DOMPurify before 3.4.17 DOM XSS via IN_PLACE Hook-Detached Subtrees
First Time appeared Cure53
Cure53 dompurify
Weaknesses CWE-79
CPEs cpe:2.3:a:cure53:dompurify:*:*:*:*:*:*:*:*
Vendors & Products Cure53
Cure53 dompurify
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 31, 2026, 2:06 AM
Reserved
Oct 26, 2026, 10:13 PM
Status
Awaiting Analysis
Published
Oct 27, 2026, 12:17 AM
Modified
Oct 31, 2026, 3:17 AM
Severity
Moderate
Public date
Oct 26, 2026, 11:05 PM