Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2026-115563

Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server

Read JSON ↗CVE.org ↗

Description

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.

Remediation guide

Fix CVE-2026-115563 in the MCP Python SDK

Guide updated .

Upgrade Python mcp to 1.30.0 on the 1.x branch or 2.2.0 on the 2.x branch, then complete the issuer and stored-registration steps below. An upgrade alone does not bind existing unattended-provider credentials to their intended authorization server.

Applicability

Installed package Vendor-listed affected range Fixed release
mcp 1.x >=1.9.1, <1.30.0 1.30.0
mcp 2.x >=2.0.0a1, <2.2.0 2.2.0

The advisory covers HTTP MCP clients using OAuthClientProvider, ClientCredentialsOAuthProvider, PrivateKeyJWTOAuthProvider, or the deprecated 1.x RFC7523OAuthClientProvider while connecting to an untrusted MCP server. Inventory that client behavior. The advisory excludes MCP servers themselves, stdio clients and clients that attach their own tokens or headers.

Upgrade and configure

  1. Keep the application's current major branch. Update its dependency declaration and lock file to the matching fixed version, preserving required extras and its package-manager workflow.
  2. For ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider, configure issuer= with the trusted authorization server that owns those credentials. Without it, the providers still follow the server advertised by the MCP server. Do not obtain this expected value from an untrusted MCP server.
  3. Replace the deprecated 1.x RFC7523OAuthClientProvider, which has no issuer option, with an appropriate supported provider.
  4. A stored OAuth client registration without an issuer remains unbound. Clear stored OAuth client information once so the client registers again. For a manually pre-registered record, set its correct issuer on that stored record instead.
  5. If affected clients may already have connected to an untrusted MCP server, rotate their client secrets and revoke their tokens at the authorization server.

Verify a clean package environment

Use Python 3.10 or newer and the branch matching the application. This clean-environment example downloads public wheels, installs them without further downloads, and checks dependencies:

python3 -m venv .venv-1x
.venv-1x/bin/python -m pip download --only-binary=:all: --dest wheels-1x 'mcp==1.30.0'
.venv-1x/bin/python -m pip install --no-index --find-links wheels-1x 'mcp==1.30.0'
.venv-1x/bin/python -m pip check
.venv-1x/bin/python -c 'from importlib.metadata import version; assert version("mcp") == "1.30.0"; print(version("mcp"))'

For an application already using 2.x, use a separate .venv-2x environment, wheels-2x, and mcp==2.2.0 in those commands. Preserve the actual application's required extras and test the rebuilt lock file as well.

Validation and rollout

Fresh isolated environments using Python 3.14.4 installed both fixed releases from public package downloads. Both pip check runs reported no broken requirements. Inspection of each installed release confirmed that ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider expose the issuer parameter.

These checks establish clean installation and the configuration interface. The application OAuth connection flow, credential rotation, stored-registration migration and deployment were not executed. Test issuer binding and normal sign-in against trusted staging services, then verify package version and configuration in the deployed environment.

Keep the previous lock file and build for controlled compatibility rollback. Restoring an affected version leaves remediation incomplete. On earlier versions, the advisory's containment is to connect OAuth-enabled clients only to trusted MCP servers.

Evidence

The fixes are upstream code. Casco prepared this operator guide; no new source patch is claimed. Upstream advisory, 1.30.0 package metadata, 2.2.0 package metadata, and CVE record.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

modelcontextprotocol python-sdk

  • >= 1.9.1, < 1.30.0affected
  • >= 2.0.0a1, < 2.2.0affected

References