NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

GHSA-w2fm-25vw-vh7f: mcp-handler has a tool response leak across concurrent client sessions ('Race Condition')

highCVSS 3.1 7.1

mcp-handler before 1.1.0 allowed an old version of the MCP TypeScript SDK (below 1.26.0) as a peer dependency. That SDK lets concurrent clients share state, so one client can read another's authentication context and tool results. The fault is in the SDK, not in mcp-handler itself. Upgrade mcp-handler to 1.1.0.

Published Apr 1, 2026 · Analysis Oct 30, 2026

What an attacker can do

The root cause is CVE-2026-25536 in @modelcontextprotocol/sdk below 1.26.0. The SDK did not stop a StreamableHTTPServerTransport instance from being reused across client connections. When a server handles concurrent requests on one reused transport, responses and server-side state can cross between clients. That state includes authentication context and tool execution results.

mcp-handler is the adapter that exposes an MCP server on a web framework route. Before 1.1.0, its peer dependency range still accepted the vulnerable SDK, so an app could pull in the flawed version and serve many users from one endpoint.

The attacker needs a low-privileged account on the endpoint and the ability to make requests at the same time as other users. Timing decides what they get. They can then read another client's session data, such as tokens or tool output, which is a confidentiality breach with possible limited integrity impact. The CVSS vector reflects this: network, low privileges, high confidentiality, low integrity.

The risk is greatest for multi-user MCP servers that wrap internal APIs, because tool results often hold private data.

Who is affected

mcp-handler (npm) before 1.1.0, installed together with @modelcontextprotocol/sdk below 1.26.0. Check both:

npm ls mcp-handler @modelcontextprotocol/sdk

If the SDK shown is 1.26.0 or higher, the underlying flaw is not present. Multi-user deployments that serve concurrent clients from one endpoint carry the most risk.

mcp-handler

Ecosystem
npm
Affected
< 1.1.0
Fixed in
1.1.0
Check
npm ls mcp-handler

How to fix it

Upgrade to [email protected]:

npm install [email protected]

This release raises the minimum peer dependency to @modelcontextprotocol/sdk@>=1.26.0, which fixes CVE-2026-25536. Alternatives from the advisory:

  • Upgrade @modelcontextprotocol/sdk to 1.26.0 or later. The SDK then throws on transport reuse, which breaks mcp-handler below 1.1.0, so this effectively forces the mcp-handler upgrade.
  • Create a fresh McpServer and transport per request in your handler code.

How to tell if you were hit

Look in logs for tool results or session identifiers returned to a client that did not request them, and for authentication context that does not match the caller. Review request logs for bursts of concurrent calls to the MCP endpoint from low-privileged accounts. After upgrading the SDK, a thrown error about transport reuse tells you your code still shares one transport across requests. The advisory lists no other indicators.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

mcp-handler versions prior to 1.1.0 accepted @modelcontextprotocol/sdk < 1.26.0 as a peer dependency. That SDK version contains a vulnerability [CVE-2026-25536] that causes concurrent requests from different clients to share server-side state including authentication context and tool execution results when a StreamableHTTPServerTransport instance is reused across requests.

Note: This is _not_ a vulnerability in mcp-handler itself. The root cause is in the peer dependency @modelcontextprotocol/sdk.

Impact

A low-privileged attacker making concurrent requests to an mcp-handler endpoint can read another client's session data, including authentication information and tool execution state. This is a confidentiality breach with potential for limited integrity impact.

Root Cause: CVE-2026-25536 in @modelcontextprotocol/sdk < 1.26.0. The SDK did not prevent reuse of stateless transports across client connections.

Patches

Upgrade to [email protected]. This release raises the minimum peer dependency to @modelcontextprotocol/sdk@>=1.26.0, which contains the fix for CVE-2026-25536.

Workarounds

  • Upgrade @modelcontextprotocol/sdk to >=1.26.0 (note: the SDK will throw on transport reuse, which will break mcp-handler < 1.1.0 which effectively forces the upgrade)
  • Alternatively, manually create fresh McpServer and transport instances per request in your handler code

Questions

Is mcp-handler itself broken?

No. The advisory states this is not a vulnerability in mcp-handler. It came from the peer dependency @modelcontextprotocol/sdk below 1.26.0, which mcp-handler accepted before 1.1.0.

Will upgrading only the SDK break my app?

It can. SDK 1.26.0 throws on transport reuse, which breaks mcp-handler below 1.1.0. Upgrade mcp-handler to 1.1.0 together with the SDK.

What does the attacker see?

Another client's session data: authentication information and tool execution results, when requests overlap in time.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Other MCP servers and tools vulnerabilities

All Other MCP servers and tools entries