GHSA-w2fm-25vw-vh7f: Mcp handler Mcp-handler Has A Tool Response Vulnerability

HIGH
CVSS 7.1
CWE-362 CWE-1395
Published
Advisory Summary

GHSA-w2fm-25vw-vh7f is a HIGH (CVSS 7.1) mcp-handler has a tool response vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Mcp handler libraries in the npm ecosystem. The issue involves mcp-handler has a tool response leak across concurrent client sessions ('race condition'). Remediation is available by upgrading affected packages to version 1.1.0.

GHSA-w2fm-25vw-vh7f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-w2fm-25vw-vh7f
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Mcp handler
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.1

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

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

How to Fix GHSA-w2fm-25vw-vh7f

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

mcp-handler fixed: 1.1.0
npm install mcp-handler@1.1.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 mcp-handler

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-w2fm-25vw-vh7f, inspect your project dependencies using npm:

npm ls mcp-handler

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

Note: The npm ls mcp-handler 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 handler, 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

`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](https://nvd.nist.gov/vuln/detail/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](https://nvd.nist.gov/vuln/detail/CVE-2026-25536) in `@modelcontextprotocol/sdk` < 1.26.0. The SDK did not prevent reuse of stateless transports across client connections. ### Patches Upgrade to `mcp-handler@1.1.0`. 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

GHSA-w2fm-25vw-vh7f Affected Mcp handler Versions

1 component(s)
Fixed Versions:
1.1.0
Product / Package Ecosystem Affected Versions Fixed Version
mcp-handler
npm
< 1.1.0
1.1.0

References

Frequently Asked Questions

What is GHSA-w2fm-25vw-vh7f?
GHSA-w2fm-25vw-vh7f is a security vulnerability in Mcp handler involving mcp-handler has a tool response leak across concurrent client sessions ('Race Condition') under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Mcp handler versions are affected?
Affected versions include releases prior to 1.1.0 across affected packages: mcp-handler.
What version fixes GHSA-w2fm-25vw-vh7f?
Upgrading to 1.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-handler affected?
Yes, mcp-handler is affected in releases prior to 1.1.0. Upgrade your dependency to 1.1.0 or later.
What is the CVSS score of GHSA-w2fm-25vw-vh7f?
GHSA-w2fm-25vw-vh7f has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N.
What CWE is associated with GHSA-w2fm-25vw-vh7f?
GHSA-w2fm-25vw-vh7f 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 GHSA-w2fm-25vw-vh7f?
Run the dependency tree command: 'npm ls mcp-handler'. 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-w2fm-25vw-vh7f",
  "modified" : "2026-04-01T23:58:50Z",
  "published" : "2026-04-01T23:58:50Z",
  "aliases" : [ ],
  "summary" : "mcp-handler has a tool response leak across concurrent client sessions ('Race Condition')",
  "details" : "`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](https://nvd.nist.gov/vuln/detail/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.\n\n**Note:** This is _not_ a vulnerability in `mcp-handler` itself. The root cause is in the peer dependency `@modelcontextprotocol/sdk`. \n\n### Impact\n\nA 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.\n\n**Root Cause:** [CVE-2026-25536](https://nvd.nist.gov/vuln/detail/CVE-2026-25536) in `@modelcontextprotocol/sdk` < 1.26.0. The SDK did not prevent reuse of stateless transports across client connections.\n\n### Patches\n\nUpgrade to `mcp-handler@1.1.0`. This release raises the minimum peer dependency to `@modelcontextprotocol/sdk@>=1.26.0`, which contains the fix for CVE-2026-25536. \n\n### Workarounds\n\n- 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)\n- Alternatively, manually create fresh `McpServer` and transport instances per request in your handler code",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mcp-handler"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/mcp-handler/security/advisories/GHSA-w2fm-25vw-vh7f"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25536"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-345p-7cg4-v4c7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/mcp-handler"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1395", "CWE-362" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-01T23:58:50Z",
    "nvd_published_at" : null
  }
}