CVE-2026-111770

CVE-2026-111770 is a high-severity race condition vulnerability in @modelcontextprotocol/server (npm), affecting versions >= 2.0.0, < 2.3.0. It is fixed in 2.3.0.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

MCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another

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

Impact

Multiple concurrent operations access a shared resource without proper synchronization, producing unpredictable results depending on timing. Typical impact: TOCTOU exploits, data corruption, or privilege escalation.

CVE-2026-111770 has a CVSS score of 7.7 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.3.0); upgrading removes the vulnerable code path.

Affected versions

@modelcontextprotocol/server (>= 2.0.0, < 2.3.0)

Security releases

@modelcontextprotocol/server → 2.3.0 (npm)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2026-111770? CVE-2026-111770 is a high-severity race condition vulnerability in @modelcontextprotocol/server (npm), affecting versions >= 2.0.0, < 2.3.0. It is fixed in 2.3.0. Multiple concurrent operations access a shared resource without proper synchronization, producing unpredictable results depending on timing.
  2. How severe is CVE-2026-111770? CVE-2026-111770 has a CVSS score of 7.7 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of @modelcontextprotocol/server are affected by CVE-2026-111770? @modelcontextprotocol/server (npm) versions >= 2.0.0, < 2.3.0 is affected.
  4. Is there a fix for CVE-2026-111770? Yes. CVE-2026-111770 is fixed in 2.3.0. Upgrade to this version or later.
  5. Is CVE-2026-111770 exploitable, and should I be worried? Whether CVE-2026-111770 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2026-111770 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2026-111770? Upgrade @modelcontextprotocol/server to 2.3.0 or later.

Other vulnerabilities in @modelcontextprotocol/server

Stop the waste.
Protect your environment with Kodem.