CVE-2026-63373: CWE-352: Cross-Site Request Forgery (CSRF) in jgraph drawio
draw.io is a configurable diagramming and whiteboarding application. Prior to version 30.2.7, the OAuth callback handler in src/main/java/com/mxgraph/online/AbsAuth.java skips comparison of stateToken and cookieToken whenever IS_GAE is false, which affects self-hosted Docker and WAR deployments. An attacker can provide an authorization code for the attacker's cloud-storage identity and induce a victim to visit a callback URL, causing the victim's draw.io session to become authenticated as the attacker identity without a valid state binding. The shared handler affects Google Drive, OneDrive, GitHub, GitLab, and Dropbox integrations. The victim can then unknowingly perform cloud-storage actions under the attacker's identity, causing session integrity loss and misattribution, but the identity binding does not itself grant access to existing victim cloud files. This issue is fixed in version 30.2.7.
AI Analysis
Technical Summary
draw.io versions before 30.2.7 have a CSRF vulnerability in the OAuth callback handler located in src/main/java/com/mxgraph/online/AbsAuth.java. When IS_GAE is false (self-hosted Docker and WAR deployments), the handler skips comparing the stateToken and cookieToken, which normally prevent CSRF attacks. An attacker can supply an authorization code for their own cloud-storage identity and trick a victim into visiting a crafted callback URL. This causes the victim’s draw.io session to be authenticated as the attacker’s identity without a valid state binding. The vulnerability affects multiple cloud-storage integrations including Google Drive, OneDrive, GitHub, GitLab, and Dropbox. While the attacker’s identity is bound to the victim’s session, it does not grant access to the victim’s existing cloud files. The flaw is resolved in draw.io version 30.2.7.
Potential Impact
The vulnerability allows an attacker to cause a victim’s draw.io session to be authenticated as the attacker’s cloud-storage identity, resulting in session integrity loss and misattribution of cloud-storage actions. However, the attacker does not gain access to the victim’s existing cloud files. This can lead to unauthorized actions being performed under the attacker’s identity within the victim’s session context.
Mitigation Recommendations
Upgrade draw.io to version 30.2.7 or later, where this vulnerability is fixed. The fix ensures proper validation of stateToken and cookieToken in the OAuth callback handler to prevent CSRF attacks. No other mitigation is indicated by the vendor advisory.
CVE-2026-63373: CWE-352: Cross-Site Request Forgery (CSRF) in jgraph drawio
Description
draw.io is a configurable diagramming and whiteboarding application. Prior to version 30.2.7, the OAuth callback handler in src/main/java/com/mxgraph/online/AbsAuth.java skips comparison of stateToken and cookieToken whenever IS_GAE is false, which affects self-hosted Docker and WAR deployments. An attacker can provide an authorization code for the attacker's cloud-storage identity and induce a victim to visit a callback URL, causing the victim's draw.io session to become authenticated as the attacker identity without a valid state binding. The shared handler affects Google Drive, OneDrive, GitHub, GitLab, and Dropbox integrations. The victim can then unknowingly perform cloud-storage actions under the attacker's identity, causing session integrity loss and misattribution, but the identity binding does not itself grant access to existing victim cloud files. This issue is fixed in version 30.2.7.
CVSS v3.1
Score 4.2medium
Affected software
jgraph
drawio
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
draw.io versions before 30.2.7 have a CSRF vulnerability in the OAuth callback handler located in src/main/java/com/mxgraph/online/AbsAuth.java. When IS_GAE is false (self-hosted Docker and WAR deployments), the handler skips comparing the stateToken and cookieToken, which normally prevent CSRF attacks. An attacker can supply an authorization code for their own cloud-storage identity and trick a victim into visiting a crafted callback URL. This causes the victim’s draw.io session to be authenticated as the attacker’s identity without a valid state binding. The vulnerability affects multiple cloud-storage integrations including Google Drive, OneDrive, GitHub, GitLab, and Dropbox. While the attacker’s identity is bound to the victim’s session, it does not grant access to the victim’s existing cloud files. The flaw is resolved in draw.io version 30.2.7.
Potential Impact
The vulnerability allows an attacker to cause a victim’s draw.io session to be authenticated as the attacker’s cloud-storage identity, resulting in session integrity loss and misattribution of cloud-storage actions. However, the attacker does not gain access to the victim’s existing cloud files. This can lead to unauthorized actions being performed under the attacker’s identity within the victim’s session context.
Mitigation Recommendations
Upgrade draw.io to version 30.2.7 or later, where this vulnerability is fixed. The fix ensures proper validation of stateToken and cookieToken in the OAuth callback handler to prevent CSRF attacks. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-16T17:39:30.170Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab15f9655bf5e2cf52f1e08
Added to database: 09/21/2026, 16:47:18 UTC
Last enriched: 09/21/2026, 17:01:39 UTC
Last updated: 09/22/2026, 00:42:50 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.