Vulnerabilities in pkg:npm/@modelcontextprotocol/server
PACKAGECVE-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.
pkg:npm/@modelcontextprotocol/server
Vulnerability advisories affecting package pkg:npm/@modelcontextprotocol/server. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-jm63-cq47-j5jp | CVE-2026-111770 | HIGH | MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another |
| GHSA-46jr-4wx8-v453 | CVE-2026-111768 | HIGH | MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation |
| GHSA-rvq5-wwqv-78pq | CVE-2026-111771 | MODERATE | MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service |
CVE-2026-111770 at a Glance
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).
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.
npm install @modelcontextprotocol/server@2.3.0
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
CVE-2026-111770 Affected MCP TypeScript server SDK Versions
1 component(s)| 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?
Which MCP TypeScript server SDK versions are affected?
What version fixes CVE-2026-111770?
Is @modelcontextprotocol/server affected?
What is the CVSS score of CVE-2026-111770?
What CWE is associated with CVE-2026-111770?
How can I check npm dependencies for CVE-2026-111770?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}