CVE-2026-104850Modelcontextprotocol Typescript-sdk insufficient verification of data authenticity
CVSS score
7.5
High
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.28%
0.28% chance of exploitation in the next 30 days, higher than 21.0% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running modelcontextprotocol Typescript-sdk and compare its version with the affected versions.
Update to a fixed version
- Update Typescript-sdk to 1.31.0, 2.2.0 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
| Affected products | Versions |
|---|---|
| modelcontextprotocol Typescript-sdk | >= 1.12.0, < 1.31.0 · >= 2.0.0, < 2.2.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-104850 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-104850?
CVE-2026-104850 has a CVSS 3.1 base score of 7.5 (high).
Which versions are affected?
Modelcontextprotocol Typescript-sdk (>= 1.12.0, < 1.31.0; >= 2.0.0, < 2.2.0)
Is there a patch for CVE-2026-104850?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/modelcontextprotocol/typescript-sdk/commit/edd12e282620ebf770d67316f19cf91d4112a1bd
- github.com/modelcontextprotocol/typescript-sdk/pull/2887
- github.com/modelcontextprotocol/typescript-sdk/releases/tag/v2.2.0
- github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6qxp-vccf-f47h
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.