---
id: CVE-2026-104850
title: >-
  MCP TypeScript SDK is the official TypeScript SDK for Model Context Protocol
  servers and clients
summary: >-
  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 …
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-345
  - CWE-522
  - CWE-941
vendor: modelcontextprotocol
product: typescript-sdk
affected:
  - 'typescript-sdk >= 1.12.0, < 1.31.0'
  - 'typescript-sdk >= 2.0.0, < 2.2.0'
patched:
  - '@modelcontextprotocol/sdk 1.31.0'
  - '@modelcontextprotocol/client 2.2.0'
published: '2026-10-06'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T20:03:40.690'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104850'
references:
  - url: >-
      https://github.com/modelcontextprotocol/typescript-sdk/commit/edd12e282620ebf770d67316f19cf91d4112a1bd
    label: security-advisories@github.com
  - url: 'https://github.com/modelcontextprotocol/typescript-sdk/pull/2887'
    label: security-advisories@github.com
  - url: 'https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/v2.2.0'
    label: security-advisories@github.com
  - url: >-
      https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-6qxp-vccf-f47h
    label: security-advisories@github.com
  - url: 'https://github.com/advisories/GHSA-6qxp-vccf-f47h'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-104850.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-104850'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2546663'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-104850'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-104850'
tags:
  - nvd
  - cve.org
  - ghsa
  - npm
  - csaf
  - vex
  - red-hat
  - exploit-available
aliases:
  - GHSA-6qxp-vccf-f47h
ecosystem: npm
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-10-06T16:28:43.638595Z'
ingestedAt: '2026-10-06T16:04:04.480Z'
epss: 0.00226
epssPercentile: 0.13165
exploitAvailable: true
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-104850)

Affected packages:

- `@modelcontextprotocol/sdk >= 1.12.0, < 1.31.0`
- `@modelcontextprotocol/client >= 2.0.0, < 2.2.0`

Patched in:

- `@modelcontextprotocol/sdk 1.31.0`
- `@modelcontextprotocol/client 2.2.0`

Source: https://github.com/advisories/GHSA-6qxp-vccf-f47h

## Vendor advisories

- **Red Hat VEX** · Important · affected: Migration Toolkit for Applications 8, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Dev Spaces · no fix planned: Migration Toolkit for Applications 8, Red Hat Ansible Automation Platform 2, Red Hat OpenShift AI (RHOAI), Red Hat OpenShift Dev Spaces · updated 2026-10-23 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-104850.json)
