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.
Published: 2026-10-26
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: Cross‑Site Scripting
Action: Patch Now
AI Analysis

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.

Generated by OpenCVE AI on October 27, 2026 at 07:15 UTC.

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 07:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 04:30:00 +0000

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'}


Subscriptions

Cure53 Dompurify
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-26T23:05:35.135Z

Reserved: 2026-10-26T22:13:13.606Z

Link: CVE-2026-116803

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T00:17:11.913

Modified: 2026-10-27T00:17:11.913

Link: CVE-2026-116803

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T07:15:08Z

Weaknesses
  • CWE-79

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