Cycode discloses Anthropic MCP Python SDK OAuth account takeover vulnerability; fixed versions released
The Login Page Was Real — and That Was the Attack: Account Takeover in Anthropic's MCP Python SDK
Cycode publicly disclosed Yuval Elbar's coordinated disclosure research on September 28, 2026, pointing out a full account takeover vulnerability in Anthropic's official MCP Python SDK. A malicious MCP server can hijack the SDK's OAuth login flow, obtain the victim's client secret, authorization code, and PKCE proof key, and then exchange them for valid access tokens at the real identity provider. Affected versions are mcp 1.9.1 through 1.29.1 and 2.0.0 through 2.1.1; fixed versions 2.2.0 and 1.30.0 were released on September 7. The attack mechanism is that the server returns 404 to discovery requests, triggering a fallback path where the SDK does not obtain the authorization server URL, issuer validation is skipped, and credential binding and authorization code audience restrictions are based on the same unverified configuration, so all of them fail. Cycode verified with three test groups—attack, control, and escape—and only the attack configuration caused real credentials to leave the local machine.
The OAuth takeover chain in the MCP Python SDK disclosed by Cycode is complete and can help teams using MCP tool servers assess their exposure and upgrade paths.