Skip to content
NewA calmer, faster ZeroHour

Official MCP Python SDK Flaw Can Let Malicious Servers Steal OAuth Credentials

The Hacker News ()3 min read5
AI summary · glm-5.3Summaries by Vani AI

Malicious MCP servers could steal OAuth client secrets and PKCE keys from apps using the official Python SDK; fixed in 1.30.0 and 2.2.0.

The official MCP Python SDK failed to validate authorization-server metadata, letting a malicious MCP server redirect OAuth flows and capture the client secret, authorization code, and PKCE proof key. Cycode, which reported the flaw, demonstrated a full token exchange granting attacker access with the app's granted permissions; the long-lived client secret keeps working until rotated. The flaw is rated 7.5 for the two non-interactive providers and 6.5 for the interactive provider, with no CVE assigned as of September 29. Fixes shipped in 1.30.0 (1.x) and 2.2.0 (2.x), but ClientCredentialsOAuthProvider and PrivateKeyJWTOAuthProvider users must also pass issuer= and rotate secrets if untrusted servers were ever contacted; no attacks have been reported.

Key facts
  • Malicious MCP server could capture client secret, authorization code, and PKCE proof key.
  • Fixed in SDK 1.30.0 and 2.2.0; no CVE assigned as of September 29.
  • CVSS 7.5 for machine-to-machine OAuth providers, 6.5 for interactive provider.
  • Upgrading alone insufficient for ClientCredentials/PrivateKeyJWT providers without issuer= parameter.
  • Rotate client secrets and revoke tokens if untrusted servers were ever connected.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

3 min read at thehackernews.com

A malicious MCP server could trick an application built on the official MCP Python SDK into handing over the OAuth credentials it uses to log in to a real service, the SDK's maintainers said in a security advisory. Affected versions sent the client secret, the authorization code, and the PKCE proof key to a token endpoint the attacker controlled. The fix is in versions 1.

The Hacker News

thehackernews.com

Read the full article at The Hacker News

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.