Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-104850

HIGH 7.5EPSS 17%

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

Also known as GHSA-6qxp-vccf-f47h

Mitigation

  • Upgrade @modelcontextprotocol/sdk to 1.31.0 or later.
  • Upgrade @modelcontextprotocol/client to 2.2.0 or later.

Who should check

  • Projects that depend on npm package @modelcontextprotocol/sdk (>= 1.12.0, < 1.31.0)
  • Projects that depend on npm package @modelcontextprotocol/client (>= 2.0.0, < 2.2.0)
  • Anyone running modelcontextprotocol typescript-sdk >= 1.12.0, < 1.31.0; >= 2.0.0, < 2.2.0

Vulnerability facts

Affected
@modelcontextprotocol/sdk >= 1.12.0, < 1.31.0; @modelcontextprotocol/client >= 2.0.0, < 2.2.0
Fixed in
1.31.0, 2.2.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
CWE
CWE-345, CWE-522
Published
Modified

Description

MCP TypeScript SDK is the official TypeScript SDK for Model Context Protocol servers and clients. Starting in version 1.12.0 and prior to versions 1.31.0 and 2.2.0, the SDK's OAuth client support let the MCP server a client connected to decide which authorization server received the client's OAuth credentials. Stored and pre-provisioned credentials were not bound to the authorization server they belong to. A malicious or compromised MCP server could name its own authorization server in its protected resource metadata. Without any user interaction, the client would send that server the `refresh_token` and `client_secret` stored from an earlier sign-in (1.x), or the configured `client_secret` or signed assertion of a bundled non-interactive provider (1.x and 2.x). Only those applications that use the SDK as an MCP client over HTTP with an `authProvider`: your own `OAuthClientProvider`, or the bundled `ClientCredentialsProvider`, `PrivateKeyJwtProvider`, `StaticPrivateKeyJwtProvider` or (2.x) `CrossAppAccessProvider` and that may connect to an MCP server the owners does not fully trust while holding credentials for a legitimate authorization server are affected. `@modelcontextprotocol/sdk` 1.31.0 (1.x) and `@modelcontextprotocol/client` 2.2.0 (2.x) patch the issue. A workaround for those who cannot upgrade is available. 2.0.0 and 2.1.0 already accept `expectedIssuer`. On 1.x, the only workaround is to connect OAuth-enabled clients only to MCP servers you trust.

Affected and fixed versions

Package / productAffectedFixedSource
npm @modelcontextprotocol/sdk>= 1.12.0, < 1.31.01.31.0osv
npm @modelcontextprotocol/client>= 2.0.0, < 2.2.02.2.0osv
modelcontextprotocol typescript-sdk>= 1.12.0, < 1.31.0; >= 2.0.0, < 2.2.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-104850. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-104850.md
Affected: @modelcontextprotocol/sdk >= 1.12.0, < 1.31.0; @modelcontextprotocol/client >= 2.0.0, < 2.2.0
Fixed in: 1.31.0, 2.2.0

Steps:
1. Search this machine and project for @modelcontextprotocol/sdk (npm), @modelcontextprotocol/client (npm), modelcontextprotocol typescript-sdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-104850 being exploited?

There is no confirmed exploitation: CVE-2026-104850 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-104850?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-104850?

@modelcontextprotocol/sdk >= 1.12.0, < 1.31.0; @modelcontextprotocol/client >= 2.0.0, < 2.2.0.

Is there a fix for CVE-2026-104850?

Yes. Fixed in 1.31.0, 2.2.0. Upgrade @modelcontextprotocol/sdk to 1.31.0 or later. Upgrade @modelcontextprotocol/client to 2.2.0 or later.

How do I check if I'm affected by CVE-2026-104850?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors