Model Context Protocol Python SDK fixes OAuth credential redirection flaw
- Model Context Protocol
- OAuth
- credentials
- SDK

Flaw in
mcp.client.authallowed unauthorized redirection of sensitive dataPatched releases are
2.2.0and1.30.0
The Model Context Protocol Python SDK fixed a vulnerability that could let a malicious or compromised MCP server redirect an OAuth client’s credentials to an unauthorized token endpoint. The project lists patched versions as 2.2.0 and 1.30.0.
According to the GitHub advisory, the SDK’s OAuth client support, mcp.client.auth, did not validate authorization-server metadata on every discovery path. It also did not bind stored or pre-provisioned client credentials to the authorization server they were intended for.
The vulnerability affected versions from 2.0.0a1 up to, but not including, 2.2.0, and versions from 1.9.1 up to, but not including, 1.30.0. The advisory says an unauthorized endpoint could receive OAuth credentials intended for the legitimate authorization server.




