CVE-2026-115563: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
Summary In affected versions, the SDK's OAuth client support (mcp.client.auth) let the MCP server a client connected to decide where the client's OAuth credentials were sent: - the authorization server metadata issuer was not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to.
Published Nov 19, 2026
Affected packages
mcp
- Ecosystem
- PyPI
- Affected
- >= 2.0.0a1, < 2.2.0
- Fixed in
- 2.2.0
- Check
pip show mcp
mcp
- Ecosystem
- PyPI
- Affected
- >= 1.9.1, < 1.30.0
- Fixed in
- 1.30.0
- Check
pip show mcp
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
In affected versions, the SDK's OAuth client support (mcp.client.auth) let the MCP server a client connected to decide where the client's OAuth credentials were sent:
- the authorization server metadata
issuerwas not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to.
A malicious or compromised MCP server could therefore direct them to a token endpoint of its choosing:
- by naming its own authorization server in its protected resource metadata, or
- by publishing none and serving metadata that presents the user's real authorization server as the
issuer.
It would then receive the client_secret, authorization code and PKCE code_verifier meant for that real server (or, with PrivateKeyJWTOAuthProvider, a signed client assertion).
Am I affected?
Yes, if both of these hold:
- your application uses the SDK as an MCP client over HTTP with
OAuthClientProvider,ClientCredentialsOAuthProvider,PrivateKeyJWTOAuthProvideror the deprecated 1.xRFC7523OAuthClientProvideras the transport'sauthhandler; - it may connect to an MCP server you do not fully trust while holding credentials for a legitimate authorization server (a pre-provisioned secret or signing key, or a stored client registration).
Affected versions:
- 1.9.1 through 1.29.1: no
issuercheck and no credential binding on any path. - 2.0.0 through 2.1.1: both missing whenever the server publishes no protected resource metadata (the legacy fallback) or answers
403 insufficient_scope. - Both lines, on every path:
ClientCredentialsOAuthProviderandPrivateKeyJWTOAuthProviderhad no way to name the authorization server their credentials belong to.
Not affected:
- MCP servers built with the SDK
- stdio clients
- clients that attach their own tokens or headers
The rating is scored for the unattended providers. With the interactive OAuthClientProvider a person has to start the sign-in; scored that way it is 6.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).
Fix
Upgrade to mcp 2.2.0 (2.x) or 1.30.0 (1.x) or later.
If you use ClientCredentialsOAuthProvider or PrivateKeyJWTOAuthProvider, upgrading changes nothing until you also pass issuer= (for example issuer="https://auth.example.com"):
- Without it they still follow whichever authorization server the MCP server advertises.
- Omitting it now emits a deprecation warning, and it becomes required in 3.0. On 1.30.0 it is a
DeprecationWarning, which Python hides by default. - The deprecated 1.x
RFC7523OAuthClientProviderhas noissueroption. Move to one of these two providers.
In the fixed versions the client also:
- works out which issuer it expects before fetching any authorization server metadata, on every path;
- refuses metadata whose
issuerdiffers, withOAuthFlowError; - binds stored registrations to that issuer, and discards one bound to a different issuer so the client registers again.
After upgrading:
- Stored registrations: a registration stored without an issuer stays unbound. That includes everything 1.x stored before 1.30.0. Clear stored OAuth client information once so the client registers again. If you placed a pre-registered client in storage yourself, set
issueron that record instead. - Past exposure: if such a client may have connected to an untrusted MCP server, rotate its client secret and revoke its tokens at the authorization server.
On earlier versions there is no workaround other than connecting OAuth-enabled clients only to MCP servers you trust.
Credited to Aviral2642, AlexMelanFromRingo, Gal3m, mrostamipoor, YuvalElbar6, yuvalelbar, RoniGurvich, mahmoudalbustan1.
References
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-qx49-fqc8-xw99
- https://nvd.nist.gov/vuln/detail/CVE-2026-115563
- https://github.com/modelcontextprotocol/python-sdk/pull/3398
- https://github.com/modelcontextprotocol/python-sdk/pull/3431
- https://github.com/modelcontextprotocol/python-sdk/pull/3435
- https://github.com/modelcontextprotocol/python-sdk/commit/3eed7ce0a6aba76e8d94c4cfb9b266f41935392c
- https://github.com/modelcontextprotocol/python-sdk/commit/979208c1157661eac0151f90974a1f96528003fa
- https://github.com/modelcontextprotocol/python-sdk/commit/d060b36e1d095ef6e93e07ba5d59bb69b2ad449a
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0
- https://github.com/advisories/GHSA-qx49-fqc8-xw99
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
Coverage on the Beam blog
More MCP Python SDK vulnerabilities
All MCP Python SDK entriesCVE-2026-116684
Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
medium6.8Oct 27, 2026CVE-2026-116685
Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
medium5.9Oct 27, 2026CVE-2026-116686
Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
medium6.5Oct 27, 2026CVE-2026-59951
MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
medium7.5Oct 15, 2026CVE-2026-52869
MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principal
high7.1Jul 16, 2026CVE-2026-52870
MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks
high7.6Jul 16, 2026
