High

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

  • Disclosed: 27.10.2026
  • Updated: 02.11.2026 10:00

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 other clients. No credentials were required unless the host application authenticates requests before they reach the SDK.

Am I affected?

You are affected if clients that are not fully trusted can reach your server over Streamable HTTP. Standard body parsers such as express.json() do not mitigate this vulnerability because they do not limit batch length. Servers that communicate strictly using stdio are not affected.

Affected versions:

  • @modelcontextprotocol/sdk 1.10.0 through 1.30.0
  • @modelcontextprotocol/server 2.0.0
  • @modelcontextprotocol/node 2.0.0
  • @modelcontextprotocol/hono 2.0.0

What to do

Remediation

Upgrade affected dependencies to fixed releases:

  • For 1.x branches: update to @modelcontextprotocol/sdk 1.30.1 or later.
  • For 2.x branches: update to @modelcontextprotocol/server 2.1.0, @modelcontextprotocol/node 2.1.0, and @modelcontextprotocol/hono 2.0.1 or later. Upgrade every affected package installed in your project.

Following the update, request bodies exceeding 4 MiB will return 413, and batches containing more than 100 messages will return 400. If clients require larger payloads, configure the maxRequestBodySize setting accordingly.

Workarounds

If upgrading immediately is not possible, cap request body sizes using a reverse proxy.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @modelcontextprotocol/hono >= 2.0.0, < 2.0.1 2.0.1
npm package @modelcontextprotocol/node >= 2.0.0, < 2.1.0 2.1.0
npm package @modelcontextprotocol/sdk >= 1.10.0, < 1.30.1 1.30.1
npm package @modelcontextprotocol/server >= 2.0.0, < 2.1.0 2.1.0

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-770
Platform
npm
Package
@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk
Disclosed
27.10.2026
Updated
02.11.2026 10:00

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - GHSA-f897-62hf-6gxq - CC BY 4.0

Vulnerability history: @modelcontextprotocol/server

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
4
First → latest
10.2026 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 3
  • Medium 1

Disclosures per year

  1. 2026: 4
  1. MCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length this entry
    High · 7.5 ghsa-f897-62hf-6gxq >= 2.0.0, < 2.1.0 2.1.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.