セキュリティ
MCPサーバーにOAuthでつなぐとき、認証情報の送り先は自分で決めていると思っていませんか。
接続先のMCPサーバー側が送り先の認可サーバーを決められる状態が、Python版SDKの公式の勧告で公開されました。
深刻度は high で、1系の修正版は mcp 1.30.0、2系の修正版も同じ勧告に出ています。
信頼していないサーバーにつないだ覚えがあるなら、認証情報の入れ替えまで勧告が求めています。
今日のうちに修正版へ上げ、保存済みのOAuthクライアント情報を一度消してください。
出典の原文(引用)
GitHub Security Advisory GHSA-qx49-fqc8-xw99 (api.github.com/advisories/GHSA-qx49-fqc8-xw99): summary "Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server"; severity "High"; published_at "2026-11-19T22:45:40Z". Vulnerabilities: package pip "mcp", vulnerable_version_range ">= 2.0.0a1, < 2.2.0", first_patched_version "2.2.0"; package pip "mcp", vulnerable_version_range ">= 1.9.1, < 1.30.0", first_patched_version "1.30.0". Description: "In affected versions, the SDK's OAuth client support (`mcp.client.auth`) let the MCP server a client connected to decide where the client's OAuth credentials were sent: - the authorization server metadata `issuer` was not validated on every discovery path, and - stored or pre-provisioned client credentials were not bound to the authorization server they belong to." / "### Fix Upgrade to `mcp` 2.2.0 (2.x) or 1.30.0 (1.x) or later." / "If you use `ClientCredentialsOAuthProvider` or `PrivateKeyJWTOAuthProvider`, upgrading changes nothing until you also pass `issuer=` (for example `issuer="https://auth.example.com"`)" / "**Stored registrations:** ... Clear stored OAuth client information once so the client registers again." / "**Past exposure:** if such a client may have connected to an untrusted MCP server, rotate its client secret and revoke its tokens at the authorization server."— github.com
