← All advisories
CVE-2026-104850highSecret exposure2026-10-06

CVE-2026-104850: MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server

In affected versions, the SDK's OAuth client let the MCP server decide which authorization server received the client's OAuth credentials. Credentials were not tied to the authorization server they belong to.

01.

What it is

In affected versions, the SDK's OAuth client let the MCP server decide which authorization server received the client's OAuth credentials. Credentials were not tied to the authorization server they belong to.

A malicious or compromised MCP server could name its own authorization server. With no user interaction, the client would send it:

- the refresh_token and client_secret stored from an earlier sign-in - the client_secret or signed assertion configured on a bundled provider

02.

How to check

  1. Affected: @modelcontextprotocol/sdk (npm) >= 1.12.0, < 1.31.0.
  2. Affected: @modelcontextprotocol/client (npm) >= 2.0.0, < 2.2.0.
  3. Compare your installed version with the range above (command below).
03.

How to fix

  1. Upgrade @modelcontextprotocol/sdk to 1.31.0 or later.
  2. Upgrade @modelcontextprotocol/client to 2.2.0 or later.
npm ls @modelcontextprotocol/sdk
npm ls @modelcontextprotocol/client
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

New advisories, CVEs and fixes for Lovable, Bolt, v0, Replit, Base44 and Cursor apps. No roundups of things you already read.