BigBadAI

GHSA-46jr-4wx8-v453

MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation

Published Oct 20, 2026 · Source: GitHub Advisory Database (via OSV.dev). Data collected Sat, 28 Nov 2026 19:06:22 GMT.

The facts

Advisory idGHSA-46jr-4wx8-v453
CVECVE-2026-111768
Package
@modelcontextprotocol/sdk npm: @modelcontextprotocol/sdk
PublishedOct 20, 2026
Source severityHIGH
Our severityhigh · 70 Advisory severity: HIGH · Confidence: GitHub Advisory Database / OSV · See the rules
FixFixed in 1.32.0
SourceGitHub Advisory Database (via OSV.dev)

Summary AI summary

Open-source package @modelcontextprotocol/sdk may exhaust server memory due to unvalidated large requests from untrusted clients.

Excerpt from the source

Copied from the official record, trimmed. Read the full source before acting.

### 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: -

Open the full source →

What to do

Update to version 1.32.0 or later to fix the issue.

Other recent advisories for this package

  • GHSA-f897-62hf-6gxq · Oct 27, 2026 · MCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length
  • GHSA-rvq5-wwqv-78pq · Oct 20, 2026 · MCP TypeScript SDK: Server bearer authentication accepted tokens issued for another service
  • GHSA-22jm-h49p-29qw · Oct 20, 2026 · MCP TypeScript SDK: Experimental tasks were not tied to the session that created them
  • GHSA-6prh-2h8m-c8cw · Oct 20, 2026 · 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 · Oct 6, 2026 · MCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server

All advisories →

This page restates a public advisory. Confirm the facts on the linked source before you act. BigBadAI is independent and not affiliated with the package authors. Data collected .