Unlimited HTTP request bodies and JSON-RPC batches can stall or exhaust MCP servers
MCP TypeScript SDK advisories say affected servers reachable over Streamable HTTP accept unlimited POST bodies and JSON-RPC batches, letting unauthenticated clients consume memory or block other clients unless the application authenticates earlier.
- Affected
- @modelcontextprotocol/sdk (npm) >= 1.10.0, < 1.30.1; @modelcontextprotocol/server (npm) >= 2.0.0, < 2.1.0; @modelcontextprotocol/node (npm) >= 2.0.0, < 2.1.0; @modelcontextprotocol/hono (npm) >= 2.0.0, < 2.0.1
- Fixed
- @modelcontextprotocol/sdk (npm) 1.30.1; @modelcontextprotocol/server (npm) 2.1.0; @modelcontextprotocol/node (npm) 2.1.0; @modelcontextprotocol/hono (npm) 2.0.1
The exposure requires untrusted clients to reach the server over Streamable HTTP; stdio-only servers are out of scope. A body parser such as express.json() does not help because it does not limit JSON-RPC batch length, and no SDK-level credentials are needed unless the application authenticates requests before they reach the SDK.
Patched releases reject bodies over 4 MiB with 413 and batches over 100 messages with 400. Fixed versions are sdk 1.30.1; server and node 2.1.0; hono 2.0.1. Users should upgrade every installed affected package; a reverse-proxy body cap is only a temporary fallback, and maxRequestBodySize can allow larger legitimate bodies.
Close by updating to the paired fixed versions for every affected package you have installed; if an upgrade is not yet possible, cap request body size in front of the MCP server.
Sources & technical scope 1 source
MCP TypeScript SDK advisories — original source ↗
Affected: @modelcontextprotocol/sdk (npm) >= 1.10.0, < 1.30.1; @modelcontextprotocol/server (npm) >= 2.0.0, < 2.1.0; @modelcontextprotocol/node (npm) >= 2.0.0, < 2.1.0; @modelcontextprotocol/hono (npm) >= 2.0.0, < 2.0.1
Fixed: @modelcontextprotocol/sdk (npm) 1.30.1; @modelcontextprotocol/server (npm) 2.1.0; @modelcontextprotocol/node (npm) 2.1.0; @modelcontextprotocol/hono (npm) 2.0.1
Exploitation: Supplied evidence does not report known exploitation; Not established by supplied evidence
Scope & limitations: Supplied evidence does not state which versions were individually tested, patch mechanics, or observed exploitation; reverse-proxy capping is described only as a temporary fallback.
External findings belong to the credited researchers.