Vulnerabilities in pkg:npm/@modelcontextprotocol/sdk

PACKAGE
Advisory Identifier: GHSA-46jr-4wx8-v453
Advisory Summary

CVE-2026-111768 is a HIGH (CVSS 7.5) one http request within the vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting MCP TypeScript SDK libraries in the npm ecosystem. The issue involves one http request within the default size limit could exhaust server memory during validation. Remediation is available by upgrading affected packages to version 1.32.0, 2.3.0.

8 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@modelcontextprotocol/sdk

8 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@modelcontextprotocol/sdk. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
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
GHSA-22jm-h49p-29qw CVE-2026-111767 HIGH MCP TypeScript SDK: Experimental tasks were not tied to the session that created them
GHSA-6prh-2h8m-c8cw CVE-2026-111769 MODERATE MCP TypeScript client SDK: HTTP client transports and OAuth requests followed cross-origin redirects and re-sent custom headers and request bodies
GHSA-6qxp-vccf-f47h CVE-2026-104850 HIGH MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
GHSA-8r9q-7v3j-jr4g CVE-2026-0621 HIGH Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
GHSA-345p-7cg4-v4c7 CVE-2026-25536 HIGH @modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
GHSA-w48q-cv73-mx4w CVE-2025-66414 HIGH Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

CVE-2026-111768 at a Glance

CVE Identifier CVE-2026-111768
GHSA Identifier GHSA-46jr-4wx8-v453
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product MCP TypeScript SDK
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2026-111768

To remediate this vulnerability, upgrade all affected MCP TypeScript 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.

@modelcontextprotocol/sdk fixed: 1.32.0
npm install @modelcontextprotocol/sdk@1.32.0
@modelcontextprotocol/server fixed: 2.3.0
npm install @modelcontextprotocol/server@2.3.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 @modelcontextprotocol/sdk

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-111768, inspect your project dependencies using npm:

npm ls @modelcontextprotocol/sdk

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

Note: The npm ls @modelcontextprotocol/sdk 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-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In MCP TypeScript 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

### Summary In affected versions, servers put no limit on how many array elements and object keys they validated in one request. One HTTP request within the default 4 MiB size limit could exhaust the server's memory, and the process aborted with `JavaScript heap out of memory`. No credentials are needed, unless you authenticate requests before they reach the SDK. ### Am I affected? Yes, if clients you do not fully trust can reach your server over HTTP. The risk is highest for `McpServer` tools whose input contains an array or a record. stdio-only servers are not affected. Affected versions: - `@modelcontextprotocol/sdk` 1.3.0 through 1.31.0 - `@modelcontextprotocol/server` 2.0.0 through 2.2.0 ### Fix Upgrade to: - 1.x: `@modelcontextprotocol/sdk` 1.32.0 or later - 2.x: `@modelcontextprotocol/server` 2.3.0 or later **Upgrading alone changes nothing.** The patched versions add an `McpServer` option, `maxToolInputElements`, that is off by default. Make both of these changes: 1. Set `maxToolInputElements` just above the largest input your tools need, for example `new McpServer(info, { maxToolInputElements: 10_000 })`. It counts array elements and object keys in a call's arguments. A call over the limit gets an `isError: true` result. 2. Lower the request size limit to what your tools need. The option covers tool arguments only, and the size limit covers everything else. Set `maxRequestBodySize` on the transport or `createMcpHandler()`. If you parse the body yourself, for example with `express.json()` or Fastify, set that parser's limit. If you cannot upgrade yet, make the second change. `maxRequestBodySize` needs `@modelcontextprotocol/sdk` 1.30.1 or `@modelcontextprotocol/server` 2.1.0. Below that, use a reverse proxy.

CVE-2026-111768 Affected MCP TypeScript SDK Versions

2 component(s)
Fixed Versions:
1.32.02.3.0
Product / Package Ecosystem Affected Versions Fixed Version
@modelcontextprotocol/sdk
npm
≥ 1.3.0
< 1.32.0
1.32.0
@modelcontextprotocol/server
npm
≥ 2.0.0
< 2.3.0
2.3.0

References

Frequently Asked Questions

What is CVE-2026-111768?
CVE-2026-111768 is a security vulnerability in MCP TypeScript SDK involving One HTTP request within the default size limit could exhaust server memory during validation under CWE-770: Allocation of Resources Without Limits or Throttling.
Which MCP TypeScript SDK versions are affected?
Affected versions include releases prior to 1.32.0, 2.3.0 across affected packages: @modelcontextprotocol/sdk, @modelcontextprotocol/server.
What version fixes CVE-2026-111768?
Upgrading to 1.32.0, 2.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @modelcontextprotocol/sdk affected?
Yes, @modelcontextprotocol/sdk is affected in releases prior to 1.32.0. Upgrade your dependency to 1.32.0 or later.
Is @modelcontextprotocol/server affected?
Yes, @modelcontextprotocol/server is affected in releases prior to 2.3.0. Upgrade your dependency to 2.3.0 or later.
What is the CVSS score of CVE-2026-111768?
CVE-2026-111768 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-111768?
CVE-2026-111768 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check npm dependencies for CVE-2026-111768?
Run the dependency tree command: 'npm ls @modelcontextprotocol/sdk'. 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-46jr-4wx8-v453",
  "modified" : "2026-10-20T20:06:35Z",
  "published" : "2026-10-20T20:06:35Z",
  "aliases" : [ "CVE-2026-111768" ],
  "summary" : "MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation",
  "details" : "### Summary\nIn affected versions, servers put no limit on how many array elements and object keys they validated in one request. One HTTP request within the default 4 MiB size limit could exhaust the server's memory, and the process aborted with `JavaScript heap out of memory`.\n\nNo credentials are needed, unless you authenticate requests before they reach the SDK.\n\n### Am I affected?\nYes, if clients you do not fully trust can reach your server over HTTP. The risk is highest for `McpServer` tools whose input contains an array or a record. stdio-only servers are not affected.\n\nAffected versions:\n\n- `@modelcontextprotocol/sdk` 1.3.0 through 1.31.0\n- `@modelcontextprotocol/server` 2.0.0 through 2.2.0\n\n### Fix\nUpgrade to:\n\n- 1.x: `@modelcontextprotocol/sdk` 1.32.0 or later\n- 2.x: `@modelcontextprotocol/server` 2.3.0 or later\n\n**Upgrading alone changes nothing.** The patched versions add an `McpServer` option, `maxToolInputElements`, that is off by default. Make both of these changes:\n\n1. Set `maxToolInputElements` just above the largest input your tools need, for example `new McpServer(info, { maxToolInputElements: 10_000 })`. It counts array elements and object keys in a call's arguments. A call over the limit gets an `isError: true` result.\n2. Lower the request size limit to what your tools need. The option covers tool arguments only, and the size limit covers everything else. Set `maxRequestBodySize` on the transport or `createMcpHandler()`. If you parse the body yourself, for example with `express.json()` or Fastify, set that parser's limit.\n\nIf you cannot upgrade yet, make the second change. `maxRequestBodySize` needs `@modelcontextprotocol/sdk` 1.30.1 or `@modelcontextprotocol/server` 2.1.0. Below that, use a reverse proxy.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@modelcontextprotocol/sdk"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "fixed" : "1.32.0"
      } ]
    } ]
  }, {
    "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-46jr-4wx8-v453"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/pull/2926"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/pull/2927"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/commit/6d8dbc6cb590edf766fcb66b636ca6b654e99c37"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk/commit/fd26801b3b387742fe24a90ed4b275dd6072209f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modelcontextprotocol/typescript-sdk"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-20T20:06:35Z",
    "nvd_published_at" : null
  }
}