Skip to the content
AI and Cybersecurity Learning and Practice Center Test automation Open the Learning Center

NewsResearch

MCP Python SDK flaw lets a malicious server steal OAuth credentials

Cycode reported that in the official MCP Python SDK a malicious MCP server can redirect the client's OAuth token exchange to an endpoint it controls and capture the client secret, authorization code and PKCE proof key. Versions 1.9.1 through 1.29.1 and 2.0.0 through 2.1.1 are affected (CVSS 7.5 for non-interactive providers, 6.5 for interactive). Fixed in 1.30.0 and 2.2.0. No CVE id had been assigned when it was reported.

Why it matters

Connecting an agent to an MCP server you do not control now carries credential risk, not only prompt injection risk. Upgrade, clear stored OAuth registrations, and rotate secrets and tokens if you connected to servers you do not trust.

Sources

Read it with the rest of the news in the Learning Center