Skip to main content

MCP Python SDK CVE-2026-115563

| EUVDEUVD-2026-126629 HIGH
Insufficient Verification of Data Authenticity (CWE-345)
2026-11-16 GitHub_M GHSA-qx49-fqc8-xw99
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Victim MCP client connects to untrusted server
  2. Delivery
    Malicious server advertises attacker-controlled authorization server
  3. Exploit
    SDK skips issuer validation / credentials unbound
  4. Execution
    Client sends client_secret, auth code or PKCE verifier to attacker endpoint
  5. Impact
    Attacker 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

python-sdk 2.0.0a1, < 2.2.0
python-sdk 1.9.1, < 1.30.0

Affected Packages

pypi mcp fix: 1.30.0, 2.2.0
euvd python_sdk fix: 1.30.0, 2.2.0

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 21:02 EUVD
CVE Published
Nov 16, 2026 - 20:24 cve.org
HIGH 7.5

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
official MCP Python SDK, broadly adopted across AI agent and tool tooling
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

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