# MCP TypeScript SDK CVE-2026-104850 can expose OAuth credentials

Canonical: https://www.oktsec.com/radar/mcp-typescript-sdk-oauth-cve-2026-104850
Publisher: Oktsec
Language: en
Published: 2026-11-29T14:42:00Z
Updated: 2026-11-29T14:42:00Z
Record reviewed: 2026-11-29T14:42:00Z
Latest evidence check: 2026-11-29T14:42:00Z
Disclosed: 2026-09-30

An affected TypeScript client can send stored OAuth credentials to the wrong authorization server when it connects to an untrusted MCP server over HTTP. A refresh token, client secret or signed assertion may be exposed.

## Evidence and response priority

- Category: Vulnerability
- Oktsec priority: Review this week
- Rationale: Prioritize clients that hold long-lived credentials and connect to MCP servers outside your organization. The maintainer excludes stdio clients and applications that only serve MCP requests.
- Evidence: Attacks not established
- Verification: Vendor confirmed
- Fix status: Fix available
- Exposure requirement: Application or configuration dependent
- Vendor: Model Context Protocol
- Products: @modelcontextprotocol/sdk, @modelcontextprotocol/client
- CVEs: CVE-2026-104850

## Technical overview

Review clients separately from servers when the same SDK appears in both dependency lists. The exposure concerns OAuth client connections over HTTP. A vulnerable package in a service that only accepts MCP requests does not establish that the service exposed credentials.

The fix checks the authorization server associated with a credential. For a new interactive sign-in, the user must still trust the server. The maintainers also exclude direct calls to refreshAuthorization() and exchangeAuthorization() from the fix, as well as 2.x clients that disable issuer metadata validation.

## Recommended response

Update the SDK and bind credentials to the trusted OAuth issuer. Migrate or clear previously saved credentials before reconnecting clients.

Relevant to: Teams that maintain MCP integrations using OAuth over HTTP.

## CVE attribution

- CVE-2026-104850: Model Context Protocol — @modelcontextprotocol/sdk, @modelcontextprotocol/client; CVSS 3.1: 7.5. [Source](https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6qxp-vccf-f47h)

## Affected systems and fixes

### @modelcontextprotocol/sdk

Affected: 1.12.0 through 1.30.1 when using the HTTP OAuth client

Fixed release / action: 1.31.0

### @modelcontextprotocol/client

Affected: 2.0.0 through 2.1.0 in the provider, storage or direct token request configurations listed by the maintainer

Fixed release / action: 2.2.0

Confirm the running version against the vendor advisory, including any distribution backports.

## CISA KEV evidence

Catalog: 2026.11.27
Checked: 2026-11-27T21:14:06.371Z

No matching CVE appears in the reviewed catalog snapshot.

CISA KEV inclusion establishes known exploitation of the listed CVE, not compromise of your environment. Absence does not rule out exploitation. The date added is not the first attack date. Federal deadlines and forensic triage requirements are context, not universal obligations for private organizations or businesses in Latin America.

## Supporting evidence

Snapshot checked: 2026-11-29T23:08:47.247Z. These dates do not change the incident’s editorial review date.

### FIRST EPSS forecast

- [CVE-2026-104850](https://api.first.org/data/v1/epss?cve=CVE-2026-104850): 0.31% probability of observed exploitation in the next 30 days; percentile 16.8%; score date 2026-11-29.

EPSS is a prediction, not exploitation evidence or organization-specific risk. Confirmed exploitation takes precedence. A missing score is not zero. Check status: available; last successful check: 2026-11-29T23:08:47.247Z.

## Response checklist

1. **Identify clients and connections** — Check the installed npm package and whether the client can connect to an untrusted MCP server while holding credentials for another service.
2. **Update the relevant packages** — On 1.x, update @modelcontextprotocol/sdk to 1.31.0 or later. On 2.x, update @modelcontextprotocol/client to 2.2.0 or later and update @modelcontextprotocol/core if you import it directly.
3. **Bind stored credentials to the issuer** — Set expectedIssuer on bundled providers. Add the trusted issuer to existing credential records or clear them and require a fresh sign-in. Custom providers must preserve issuer information when saving and loading credentials.
4. **Respond to possible exposure** — If a vulnerable client may have contacted an untrusted server, revoke its tokens and rotate the client secret or signing key. Until the fix is deployed, restrict connections to trusted servers.

## Relevance to AI environments

Review the OAuth credentials held by agent hosts that let users add external MCP servers.

## Sources

- [TypeScript SDK OAuth client security advisory](https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6qxp-vccf-f47h) — Model Context Protocol; Vendor notice; checked 2026-11-29T14:42:00Z
- [TypeScript SDK 2.2.0 release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/v2.2.0) — Model Context Protocol; Vendor notice; checked 2026-11-29T14:42:00Z

## Editorial record

- 2026-11-29T14:42:00Z: Added the affected client configurations, fixed package versions and credential migration steps.

## Use this advisory in Radar

Use the Advisory view to understand the issue and its evidence, Affected systems to compare versions, and Response plan to record applicability, an owner and action progress. Plans are saved only in the current browser and can be downloaded for sharing; they are not a shared team account or an automated scan. Completing a plan does not validate remediation. Talk to Oktsec opens a technical consultation with the advisory and selected service preserved. Scope, fees and access are agreed before any assessment.

[Open advisory](https://www.oktsec.com/radar/mcp-typescript-sdk-oauth-cve-2026-104850) · [Build a response plan](https://www.oktsec.com/radar/mcp-typescript-sdk-oauth-cve-2026-104850#review-workspace)

- [Patch verification consultation](https://www.oktsec.com/contact?source=radar&intent=assessment&item=mcp-typescript-sdk-oauth-cve-2026-104850&service=patch_verification)

## Scope and corrections

Radar is a selected editorial collection, not a complete vulnerability database or a scan of your environment. Priorities are Oktsec analysis. Source confirmation and checklist completion do not establish whether your systems are compromised or secure.

[Sources and methodology](https://www.oktsec.com/radar/about). Report corrections with supporting sources to info@oktsec.com. Do not send secrets or private incident data.

