gbhackers.com·29 september 2026
Anthropic MCP Python SDK Flaw Enables OAuth Credential Theft and Account Takeover

Anthropic
authorization codes
Azure AD
client secrets
credential theft
Cycode
Google
Model Context Protocol
OAuth
OAuth discovery
Okta
PKCE
Python SDK
security flaw
security update
vulnerability
gbhackers.com
Security researchers disclosed a high-severity vulnerability in Anthropic’s Model Context Protocol (MCP) Python SDK, allowing malicious servers to steal OAuth credentials and take over user accounts. The flaw affects SDK versions 1.9.1 to 2.1.1 and exploits weaknesses in the OAuth discovery process. Attackers can redirect sensitive token-exchange data to their own endpoints, bypassing PKCE protections. Organizations should upgrade to versions 1.30.0 or 2.2.0 or later and rotate client secrets to mitigate the risk.