BigBadAI

GHSA-f897-62hf-6gxq

MCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length

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

The facts

Advisory idGHSA-f897-62hf-6gxq
Package
@modelcontextprotocol/sdk npm: @modelcontextprotocol/sdk
PublishedOct 27, 2026
Source severityHIGH
Our severityhigh · 70 Advisory severity: HIGH · Confidence: GitHub Advisory Database / OSV · See the rules
FixFixed in 1.30.1
SourceGitHub Advisory Database (via OSV.dev)

Summary AI summary

Open-source package @modelcontextprotocol/sdk has a vulnerability that allows large requests to exhaust server memory, affecting servers reachable over HTTP by untrusted clients.

Excerpt from the source

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

### Summary In affected versions, MCP servers reachable over HTTP put no limit on the size of a POST body or on the number of messages in a JSON-RPC batch. Large requests could exhaust the server's memory, and one long batch could block it from serving anyone else. No credentials were needed, unless your application authenticates requests before they reach the SDK. ### Am I affected? Yes, if clients you do not fully trust can reach your server over Streamable HTTP. A body parser such as `express.json()` does not protect you, because it does not limit batch length. Servers that only use stdio a

Open the full source →

What to do

Update to version 1.30.1 or later to fix the issue.

Other recent advisories for this package

  • GHSA-46jr-4wx8-v453 · Oct 20, 2026 · MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
  • 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 .