Briefing, 24 November 2026: the MCP Python SDK sent credentials where the server pointed
What happened
CVE-2026-115563 (GHSA-qx49-fqc8-xw99, high) covers the OAuth client in mcp, the official Python SDK for the Model Context Protocol (MCP). The client did not check the issuer in authorization server metadata on every discovery path, and it did not bind stored or pre-provisioned credentials to the authorization server that issued them (advisory). Versions 1.9.1 through 1.29.1 checked neither. Versions 2.0.0 through 2.1.1 did both when the server published protected resource metadata, and neither on the legacy fallback without it or after a 403 insufficient_scope. On both lines, ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider had no way to name their authorization server.
The advisory (28 September) gives the vulnerable ranges >= 1.9.1, < 1.30.0 and >= 2.0.0a1, < 2.2.0. The fixes shipped on 7 September 2026 (v1.30.0, v2.2.0; pull requests 3398, 3431, 3435); NVD published the CVE on 16 November (NVD).
What it changes for attack
The attacker is the MCP server, malicious or compromised, that a client connects to while it holds real credentials. It can name its own authorization server in its protected resource metadata. Or it can publish none and serve metadata that presents the user's real authorization server as the issuer. The client then sends the attacker the client secret, the authorization code with its PKCE code verifier, or, with private key JWT, a signed client assertion.
The advisory scores the unattended providers 7.5 and the interactive OAuthClientProvider 6.5, since that flow needs the user. A client-credentials agent has no user to notice: it hands over its secret when it meets a hostile server. Only HTTP clients using one of the four provider classes as the transport's auth handler are affected; SDK servers, stdio clients and clients attaching their own headers are not.
What it changes for defense
Upgrade to 1.30.0 or 2.2.0. The two pre-provisioned providers also need issuer= set to your authorization server's issuer URL, or they still follow whichever one the server advertises. Without it, 1.30.0 emits a DeprecationWarning, which Python hides by default outside __main__, and 2.2.0 an MCPDeprecationWarning; 3.0 will require it. The deprecated 1.x RFC7523OAuthClientProvider has no issuer option: move off it. A registration stored without an issuer, including everything 1.x stored before 1.30.0, stays unbound: clear stored OAuth client information once, or set issuer on a pre-registered record you placed yourself.
Treat a server's authorization metadata as untrusted input, decide which authorization server a credential belongs to before discovery, and refuse metadata whose issuer does not match. If a client may have talked to an untrusted server, rotate its secret and revoke its tokens. Older versions have no workaround but trusted servers only.
What the course revised
Week 15's Authorization: tokens, scopes and who may call a tool described discovery and the iss check, but not a hostile server steering the client. It now says so in two sentences, with this CVE as the example. Week 7's The spec is catching up already listed credential binding as a spec change, and gains one sentence on MCP's new six-month release schedule (MCP Blog).
Exercise: find your MCP OAuth clients and their issuers (~40 min)
You will learn whether a Python project is exposed and where each of its credentials belongs. You need Python and grep; no API key. The commands were run against mcp 1.29.1, 1.30.0, 2.1.1 and 2.2.0 on Python 3.12.
- In the project's environment, compare the installed version with the ranges above:
python -c "import importlib.metadata as m; print(m.version('mcp'))" - From the project root, search your code and every installed package for the four provider classes:
grep -rnE "OAuthClientProvider|ClientCredentialsOAuthProvider|PrivateKeyJWTOAuthProvider|RFC7523OAuthClientProvider" --include='*.py' . "$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')" | grep -v '/site-packages/mcp/' - Check whether the installed provider can be told its issuer (
Truefrom 1.30.0 and 2.2.0):python -c "import inspect; from mcp.client.auth.extensions.client_credentials import ClientCredentialsOAuthProvider as P; print('issuer' in inspect.signature(P.__init__).parameters)" - For each hit outside
mcpitself, write one line: the class, the servers it reaches over HTTP, the credential it holds, and the issuer URL of the authorization server that issued it. Rotate first any credential whose issuer you cannot name. - After upgrading, run the client once with
python -W error: it stops on the first warning, including a missingissuer=. Fix each.