GHSA-jm63-cq47-j5jp

Suggest an improvement
Source
https://github.com/advisories/GHSA-jm63-cq47-j5jp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-jm63-cq47-j5jp/GHSA-jm63-cq47-j5jp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jm63-cq47-j5jp
Aliases
  • CVE-2026-111770
Published
2026-10-20T20:07:29Z
Modified
2026-10-20T20:15:05Z
Severity
  • 7.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:H CVSS Calculator
Summary
MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-362"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-20T20:07:29Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @modelcontextprotocol/server

Package

Name
@modelcontextprotocol/server
View open source insights on deps.dev
Purl
pkg:npm/%40modelcontextprotocol/server

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
2.3.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-jm63-cq47-j5jp/GHSA-jm63-cq47-j5jp.json"