Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim initiates MCP OAuth authentication flow
-
DeliveryLocal callback server starts on dynamic port
-
ExploitAttacker discovers or guesses callback port
-
ExecutionAttacker sends forged callback with malicious code and no state parameter
-
PersistUnpatched server accepts code without state validation
-
ImpactAttacker-controlled authorization code processed as legitimate
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Cherry Studio must be running and the victim user must have actively initiated an MCP OAuth authentication flow - this starts the local callback server that is the attack surface. The attacker must be able to reach the local callback server with an HTTP request during the window the flow is in-flight; network reachability of the callback server depends on whether it binds to 0.0.0.0 (network-accessible) or 127.0.0.1 (localhost only) - this binding behavior is not confirmed from available data and materially affects exploitability. Exploitation is further limited by a race condition: the injected request must arrive and be processed before the legitimate authorization server redirect delivers the real code and state. Users who do not use MCP servers requiring OAuth are not affected; the vulnerability is inert unless an OAuth flow is actively in progress. |
| Impact | The CVSS 4.0 score of 6.3 (Medium) with AV:N/AC:H/PR:N/UI:N reflects meaningful operational complexity - successful exploitation requires the attacker to race the legitimate OAuth callback during the narrow window the victim's OAuth flow is in-flight, while also knowing or discovering the dynamically assigned local callback port. Impact metrics VC:L/VI:L/VA:L indicate bounded consequences: a successful injection substitutes an attacker-controlled authorization code for the victim's, potentially granting the attacker access to whatever OAuth-protected MCP service the victim was configuring. The E:P modifier confirms publicly available exploit code (GitHub issue #15372), which elevates practical risk above theoretical. No EPSS score was provided in the input data. The absence of a CISA KEV listing indicates no confirmed widespread exploitation. AC:H is the dominant risk-limiting factor; this is not a fire-and-forget, mass-exploitation scenario. Real-world risk is moderate for users actively using OAuth-backed MCP integrations and low for those who do not. |
| Exploit ScenarioDerived | A user running Cherry Studio initiates an OAuth authentication flow for an MCP server integration, causing the application to start a local HTTP callback server on a dynamically assigned port without binding it exclusively to loopback. An attacker on the same network who discovers or brute-forces the callback port sends a forged HTTP GET request to the callback path with a crafted |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 29, 2026
Cherry Studio's MCP OAuth Local Callback Server, in all versions up to 1.9.6, accepts OAuth authorization code callbacks without validating the OAuth state parameter, enabling authorization code injection attacks. The PR diff confirms that src/main/services/mcp/oauth/callback.ts processed any inbound code value without checking a bound state token, allowing a network-positioned attacker to substitute a malicious authorization code during an active OAuth flow. A public exploit has been disclosed via GitHub issue #15372; no confirmed patched release exists - only an unmerged fix PR (#15388) - and no active exploitation has been confirmed (not in CISA KEV).
RemediationAI
The primary fix is the upstream patch in GitHub PR #15388 (https://github.com/CherryHQ/cherry-studio/pull/15388), which adds OAuth state validation to the local callback server. No officially released patched version has been confirmed - the PR awaited acceptance at time of analysis. Users building from source should cherry-pick the changes to MCPService.ts that pass expectedState from the auth provider to the callback handler and call authProvider.clearExpectedState() after use. Monitor the Cherry Studio releases page at https://github.com/CherryHQ/cherry-studio for a version beyond 1.9.6 that incorporates this fix. As a compensating control, avoid initiating MCP OAuth flows on untrusted or shared networks, reducing the window for a network-based race-condition injection. Disabling MCP integrations that require OAuth entirely eliminates all exposure until a patched release is available, at the cost of losing OAuth-protected MCP server functionality.
Affected VersionsENISA
Affected Packages
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
Cherry Studio is an Electron-based AI desktop client that integrates with Model Context Protocol (MCP) servers, some of which require OAuth 2.0 authentication. The affected component is a local HTTP server that handles the OAuth authorization code callback step - the redirect from the authorization server to a local URI after user consent. CWE-285 (Improper Authorization) applies because the callback handler omitted validation of the OAuth state parameter, a CSRF-prevention mechanism mandated by RFC 6749 that binds each authorization request to its corresponding callback. The fix PR adds expectedState propagation from the auth provider instance to the callback server, rejecting any request where state is absent or does not match the session-generated value. Tests added in the PR explicitly confirm that requests with missing or mismatched state receive HTTP 400 with body 'Invalid OAuth state'. The CPE string cpe:2.3:a:cherryhq:cherry-studio:*:*:*:*:*:*:*:* covers all releases through 1.9.6.
Know when Cherry Studio 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
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network vector per CVE description and CVSS 4.0 input; AC:H for race-condition timing requirement; PR:N as no credentials needed; no availability impact from code injection.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A security vulnerability has been detected in CherryHQ cherry-studio up to 1.9.6. This vulnerability affects unknown code of the file src/main/services/mcp/oauth/callback.ts of the component MCP OAuth Local Callback Server. The manipulation of the argument code leads to improper authorization. The attack can be initiated remotely. The attack is considered to have high complexity. It is stated that the exploitability is difficult. The exploit has been disclosed publicly and may be used. The pull request to fix this issue awaits acceptance.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in CherryHQ cherry-studio Authorization and Access Control Flaws
View all 2More in Cherry Studio
View allRemote code execution in Cherry Studio allows unauthenticated attackers to run arbitrary commands on a victim's system w
Remote code execution in Cherry Studio 1.2.2 through 1.9.12 lets attackers who control search-provider content run arbit
Cherry Studio is a desktop client that supports for multiple LLM providers. Rated critical severity (CVSS 9.6), this vul
Cherry Studio is a desktop client that supports for multiple LLM providers. Rated high severity (CVSS 7.7), this vulnera
Cherry Studio is a desktop client that supports for multiple LLM providers. Rated high severity (CVSS 8.0), this vulnera
EUVD-2026-40021
GHSA-9c5h-h4mj-p5ch
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB