CVE-2026-111770: MCP TypeScript server SDK Shared Transport Or Server Instances Vulnerability

HIGH
Advisory Identifier: GHSA-jm63-cq47-j5jp
CVSS 7.7
CWE-362
Published
Advisory Summary

CVE-2026-111770 is a HIGH (CVSS 7.7) shared transport or server instances vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting MCP TypeScript server SDK libraries in the npm ecosystem. The issue involves shared transport or server instances delivered one http client's messages to another. Remediation is available by upgrading affected packages to version 2.3.0.

CVE-2026-111770 at a Glance

CVE Identifier CVE-2026-111770
GHSA Identifier GHSA-jm63-cq47-j5jp
Severity HIGH
CVSS v3.1 Base Score 7.7
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product MCP TypeScript server SDK
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability High (A:H)

How to Fix CVE-2026-111770

To remediate this vulnerability, upgrade all affected MCP TypeScript server SDK dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@modelcontextprotocol/server fixed: 2.3.0
npm install @modelcontextprotocol/server@2.3.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @modelcontextprotocol/server

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-111770, inspect your project dependencies using npm:

npm ls @modelcontextprotocol/server

Analyze the terminal output to locate any version of MCP TypeScript server SDK in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.0), your application is affected.

Note: The npm ls @modelcontextprotocol/server command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In MCP TypeScript server SDK, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary In affected versions, an MCP server reached over HTTP could deliver one client's responses and notifications to another client. This happened when clients shared one stateless transport, or one `McpServer` or `Server` instance. Messages were matched to a connection by JSON-RPC `id` alone. SDK clients number requests from 0, so ids collide in normal use. ### Am I affected? Yes, if more than one client can reach your HTTP endpoint and your code creates the transport or the server once at startup, instead of once per request or per session. Until this release, the README examples of `@modelcontextprotocol/hono`, `express`, `fastify` and `node` showed that pattern. Affected versions: `@modelcontextprotocol/server` 2.0.0 through 2.2.0. Not affected: - `createMcpHandler()` with a factory that builds a new server on every call - stdio servers - `@modelcontextprotocol/sdk` 1.26.0 and later ### Fix Upgrade to `@modelcontextprotocol/server` 2.3.0 or later. **You also need to change your code.** The SDK now refuses to be shared, so an affected app fails requests after upgrading: a second `connect()` rejects with `ALREADY_CONNECTED`, and a stateless transport rejects its second request. Change to one of these: - **`createMcpHandler()`:** pass a factory that builds a new `McpServer` on every call. - **Per request:** build a new `McpServer` and a new transport inside the request handler. - **Per session:** set `sessionIdGenerator` and keep one `McpServer` and one transport per session. If you cannot upgrade yet, the same change fixes affected versions.

CVE-2026-111770 Affected MCP TypeScript server SDK Versions

1 component(s)
Fixed Versions:
2.3.0
Product / Package Ecosystem Affected Versions Fixed Version
@modelcontextprotocol/server
npm
≥ 2.0.0
< 2.3.0
2.3.0

References

Frequently Asked Questions

What is CVE-2026-111770?
CVE-2026-111770 is a security vulnerability in MCP TypeScript server SDK involving Shared transport or server instances delivered one HTTP client's messages to another under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which MCP TypeScript server SDK versions are affected?
Affected versions include releases prior to 2.3.0 across affected packages: @modelcontextprotocol/server.
What version fixes CVE-2026-111770?
Upgrading to 2.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @modelcontextprotocol/server affected?
Yes, @modelcontextprotocol/server is affected in releases prior to 2.3.0. Upgrade your dependency to 2.3.0 or later.
What is the CVSS score of CVE-2026-111770?
CVE-2026-111770 has a CVSS v3.1 base score of 7.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H.
What CWE is associated with CVE-2026-111770?
CVE-2026-111770 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check npm dependencies for CVE-2026-111770?
Run the dependency tree command: 'npm ls @modelcontextprotocol/server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jm63-cq47-j5jp",
  "modified" : "2026-10-20T20:07:29Z",
  "published" : "2026-10-20T20:07:29Z",
  "aliases" : [ "CVE-2026-111770" ],
  "summary" : "MCP  TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another",
  "details" : "### Summary\nIn affected versions, an MCP server reached over HTTP could deliver one client's responses and notifications to another client. This happened when clients shared one stateless transport, or one `McpServer` or `Server` instance.\n\nMessages were matched to a connection by JSON-RPC `id` alone. SDK clients number requests from 0, so ids collide in normal use.\n\n### Am I affected?\nYes, if more than one client can reach your HTTP endpoint and your code creates the transport or the server once at startup, instead of once per request or per session. Until this release, the README examples of `@modelcontextprotocol/hono`, `express`, `fastify` and `node` showed that pattern.\n\nAffected versions: `@modelcontextprotocol/server` 2.0.0 through 2.2.0.\n\nNot affected:\n\n- `createMcpHandler()` with a factory that builds a new server on every call\n- stdio servers\n- `@modelcontextprotocol/sdk` 1.26.0 and later\n\n### Fix\nUpgrade to `@modelcontextprotocol/server` 2.3.0 or later.\n\n**You also need to change your code.** The SDK now refuses to be shared, so an affected app fails requests after upgrading: a second `connect()` rejects with `ALREADY_CONNECTED`, and a stateless transport rejects its second request.\n\nChange to one of these:\n\n- **`createMcpHandler()`:** pass a factory that builds a new `McpServer` on every call.\n- **Per request:** build a new `McpServer` and a new transport inside the request handler.\n- **Per session:** set `sessionIdGenerator` and keep one `McpServer` and one transport per session.\n\nIf you cannot upgrade yet, the same change fixes affected versions.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@modelcontextprotocol/server"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.3.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-jm63-cq47-j5jp"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/pull/2918"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/commit/84804c22e45a662675a198f853b7f00063838a8d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T20:07:29Z",
    "nvd_published_at" : null
  }
}