Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim MCP client connects to untrusted server
-
DeliveryMalicious server advertises attacker-controlled authorization server
-
ExploitSDK skips issuer validation / credentials unbound
-
ExecutionClient sends client_secret, auth code or PKCE verifier to attacker endpoint
-
ImpactAttacker captures and reuses OAuth credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires a specific deployment: the application must use the Python SDK as an MCP client over HTTP with OAuthClientProvider, ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider, or the deprecated 1.x RFC7523OAuthClientProvider as the transport's auth handler, AND must connect to an MCP server it does not fully trust while holding credentials for a legitimate authorization server (a pre-provisioned secret or signing key, or a stored client registration). Limiting factors: MCP servers built with the SDK, stdio clients, and clients that attach their own tokens or headers are NOT affected. The interactive OAuthClientProvider additionally requires a person to initiate sign-in (hence its lower 6.5 score with UI:R), whereas the unattended ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider need no user interaction. Even after upgrading, ClientCredentialsOAuthProvider/PrivateKeyJWTOAuthProvider remain exposed unless the caller also configures issuer=, and stored registrations without an issuer stay unbound until stored OAuth client information is cleared once (or the pre-registered record is updated with its issuer); the deprecated RFC7523OAuthClientProvider has no issuer option and must be replaced. |
| Impact | The input CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N = 7.5) describes a network-reachable, low-complexity confidentiality-only flaw - credential disclosure, with no integrity or availability impact. The GitHub advisory confirms this 7.5 rating applies specifically to the unattended providers (ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider); the interactive OAuthClientProvider is scored lower at 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N→UI:R) because a person must start sign-in, making it less automatable. No EPSS score is provided, this CVE is not on CISA KEV (no active-exploitation signal), and no verified working exploit was supplied - the references are the vendor advisory, fix PRs, commits, and release tags, not exploit code. The vuln.today decision label is 'this_week' rather than act_now/emergency. Net assessment: this is a genuine, well-understood credential-leak defect but its real-world risk is strongly gated by a precondition the raw PR:N/UI:N vector does not capture - the victim application must act as an MCP client over HTTP using one of the affected OAuth providers AND connect to an MCP server it does not fully trust while holding credentials for a legitimate authorization server. That makes it a 'this_week' remediation priority for exposed MCP client deployments rather than an internet-wide emergency. Note also the input Tags label this 'Denial Of Service', which directly contradicts the C:H/I:N/A:N vector and the advisory's credential-disclosure mechanism. |
| Exploit ScenarioDerived | A developer runs an MCP client built on the Python SDK with ClientCredentialsOAuthProvider holding a pre-provisioned client_secret for a legitimate authorization server, then connects to an attacker-controlled MCP server. Because the SDK does not bind those credentials to their owning authorization server and does not validate the issuer on every discovery path, the malicious server advertises its own token endpoint and receives the client_secret (or, with PrivateKeyJWTOAuthProvider, a signed client assertion; with the interactive flow, the authorization code and PKCE code_verifier). No verified working public exploit was provided - only the vendor advisory and fix commits - so this is a public PoC reference at best, not confirmed exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
OAuth credential disclosure in the Model Context Protocol Python SDK (pip package 'mcp', versions 1.9.1 through 1.29.1 and 2.0.0 through 2.1.1) allows a malicious or compromised MCP server to redirect a client's client_secret, authorization code, PKCE code_verifier, or signed client assertion to an authorization server of its choosing, because the authorization server metadata 'issuer' was not validated on every discovery path and stored or pre-provisioned client credentials were not bound to the issuer that owns them. Affected are applications that use the SDK as an MCP client over HTTP with OAuthClientProvider, ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider, or the deprecated 1.x RFC7523OAuthClientProvider as the transport auth handler and that may connect to an MCP server they do not fully trust while holding credentials for a legitimate authorization server; MCP servers built with the SDK, stdio clients, and clients attaching their own tokens or headers are not affected. Severity is 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N) scored for the unattended providers, dropping to 6.5 (UI:R) for the interactive OAuthClientProvider because a person must start sign-in; no public exploit code and no confirmed active exploitation (CISA KEV) were identified at time of analysis, and the issue is fixed in 1.30.0 and 2.2.0.
RemediationAI
Vendor-released patch: upgrade to mcp 2.2.0 (2.x line) or 1.30.0 (1.x line) or later, per https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 and https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0. Upgrading alone is not sufficient for the unattended providers: callers using ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider must pass issuer= (for example issuer="https://auth.example.com", using the issuer value returned by that server's /.well-known/oauth-authorization-server document), otherwise token requests still follow whichever authorization server the MCP server advertises; omitting it emits a DeprecationWarning that Python hides by default and becomes required in 3.0. The deprecated 1.x RFC7523OAuthClientProvider has no issuer option and must be replaced with one of those two providers. Stored OAuth client registrations remain unbound after upgrading (including everything 1.x stored before 1.30.0), so clear stored OAuth client information once so the client registers again, or set issuer on any manually pre-registered record. If an affected client may have connected to an untrusted MCP server, rotate its client secret and revoke its tokens at the authorization server. On versions earlier than the fixed releases the vendor states there is no workaround other than connecting OAuth-enabled clients only to MCP servers you trust; the corresponding upstream changes are PRs 3398, 3431 and 3435 and commits 3eed7ce0a6aba76e8d94c4cfb9b266f41935392c, 979208c1157661eac0151f90974a1f96528003fa and d060b36e1d095ef6e93e07ba5d59bb69b2ad449a.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in the SDK's OAuth client implementation under mcp.client.auth, which implements OAuth 2.0 discovery for MCP HTTP transports: the client reads the WWW-Authenticate challenge, fetches Protected Resource Metadata (RFC 9728) from /.well-known/oauth-protected-resource to learn which authorization server protects the resource, then fetches that server's authorization server metadata (RFC 8414) and performs registration and token requests. Correct OAuth mix-up defense requires the client to know the expected issuer before fetching metadata and to reject metadata whose 'issuer' does not match, and to bind any stored client registration to that issuer. Root cause classes are CWE-345 (insufficient verification of data authenticity) and CWE-522 (insufficiently protected credentials): on 1.9.1-1.29.1 there was neither an issuer check nor credential binding on any path, and on 2.0.0-2.1.1 both were missing whenever the server publishes no protected resource metadata (the legacy fallback that queries the MCP server's own origin) or answers 403 insufficient_scope; additionally ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider had no way to name the authorization server their credentials belong to, and the deprecated 1.x RFC7523OAuthClientProvider still has none. The fixed versions compute the expected issuer before any metadata fetch on every path, refuse mismatched metadata with OAuthFlowError (including trailing-slash disagreement per RFC 8414 section 3.3, except that a root issuer with trailing slash is accepted on the legacy no-metadata path where the expected value is the MCP server's origin), and discard stored registrations bound to a different issuer. Note that third-party tagging for this record includes a denial-of-service label, but neither the GHSA advisory nor the assessed vector (C:H/I:N/A:N) supports an availability impact; the concrete impact is credential disclosure.
Know when Python Sdk 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Unattended OAuth providers send credentials with no user interaction over the network; confidentiality-only (client_secret/assertion disclosure), no integrity or availability impact, matching the advisory's primary score.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
The Model Context Protocol Python SDK is the official Python SDK for Model Context Protocol servers and clients. From 1.9.1 until 1.30.0 and 2.2.0, OAuth client support in mcp.client.auth can send credentials to an authorization server chosen by an untrusted MCP server. ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider cannot identify the authorization server that owns their credentials. Affected HTTP clients using those providers, OAuthClientProvider, or the deprecated 1.x RFC7523OAuthClientProvider can disclose a client_secret, authorization code, PKCE code_verifier, or signed client assertion. MCP servers, stdio clients, and clients that attach their own tokens or headers are not affected. Interactive OAuthClientProvider use requires a person to start sign-in, while the unattended providers do not. For ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider, callers must configure issuer= after upgrading because omission still follows the MCP server's advertised authorization server, and the deprecated RFC7523OAuthClientProvider must be replaced because it has no issuer option. A stored client registration without an issuer remains unbound after upgrading, so stored OAuth client information must be cleared once to register again or a manually pre-registered record must be updated with its issuer. This issue is fixed in versions 1.30.0 and 2.2.0.
Articles & Coverage 1
Technical POC Analysis
CWE-345 (Insufficient Verification of Data Authenticity), with CWE-522 (Insufficiently Protected Credentials) also assigned in the advisory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The OAuth client implementation in the Model Context Protocol Python SDK (pip package 'mcp') has a high-severity flaw that allows a malicious MCP server to steal OAuth client credentials, including client secrets and authorization codes. Organizations using the SDK as an MCP client over HTTP to connect to untrusted servers are at risk of credential compromise, potentially leading to unauthorized access to downstream systems and data. Leadership should prioritize identifying affected applications and applying mitigations, as the confidentiality impact is significant and no patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict MCP client connections to fully trusted servers; manually validate the authorization server issuer during OAuth discovery and bind client credentials to the expected issuer; rotate potentially exposed client secrets; monitor OAuth token exchanges for suspicious redirects.
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
More in Python Sdk
View allCross-session message injection in the MCP Python SDK (the 'mcp' package on PyPI) prior to 1.27.2 allows an authenticate
Resource-confusion in the Model Context Protocol Python SDK (pip package mcp) causes server-side bearer authentication t
Client-side server-side request forgery and denial of service in the official Model Context Protocol Python SDK: when a
Cross-origin redirect handling in the Model Context Protocol Python SDK (published on PyPI as `mcp`) leaks caller-suppli
Missing authorization in the MCP Python SDK (the `mcp` PyPI package) versions 1.23.0 through 1.27.1 lets any authenticat
Unbounded HTTP request-body buffering in the Model Context Protocol Python SDK (the 'mcp' package) before 1.29.1 and in
Cross-origin WebSocket hijacking in the Model Context Protocol Python SDK (mcp on PyPI) before 1.28.1 lets a remote web
Unbounded server-side memory growth in stateful Streamable HTTP servers built on the MCP Python SDK (the 'mcp' package o
EUVD-2026-126629
GHSA-qx49-fqc8-xw99
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB