All vulnerabilities

npm

CVE-2026-104850

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

Severity
High 7.5
Published
6 Oct 2026
Last changed
6 Oct 2026
Added to UpHeron
22 Oct 2026
Fixed in
1.31.0, 2.2.0
Exploit chance
0.3% in the next 30 daysHigher than 21% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Insufficient verification of data authenticity (CWE-345)Insufficiently protected credentials (CWE-522)
Attack
Over the network · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-6qxp-vccf-f47h
Sources
OSV.dev and GitHub

Description

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
From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@modelcontextprotocol/clientnpm · osv:npm:@modelcontextprotocol/client
  • From 2.0.0 before 2.2.0
@modelcontextprotocol/sdknpm · osv:npm:@modelcontextprotocol/sdk
  • From 1.12.0 before 1.31.0

About @modelcontextprotocol/client

Weekly downloads (npm)
19,746,364npm, 17 Nov 2026

Vulnerabilities in @modelcontextprotocol/client

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
1
Known exploited
0
Search the list for @modelcontextprotocol/client

About @modelcontextprotocol/sdk

Weekly downloads (npm)
90,522,817npm, 17 Nov 2026

References