Known CVEnpm/@modelcontextprotocol/sdk
CVE-2026-104850: MCP TypeScript SDK sends OAuth credentials to an authorization server the MCP server chooses
High
The SDK's OAuth client did not tie credentials to their authorization server, so a malicious or compromised MCP server could name its own and receive the stored refresh token and client secret with no user interaction (CVSS 7.5). Upgrade to 1.31.0 (the @modelcontextprotocol/client 2.x line is fixed in 2.2.0) and rotate the credentials.
Affected and fixed versions
Affected: >= 1.12.0, < 1.31.0. Fixed in 1.31.0.
Sources
See every known CVE, and the ones in the news, in the Learning Center