MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
CVE-2026-111768 · GHSA-46jr-4wx8-v453 · published 2026-10-20
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.60%
- Fixed in
- 1.32.0
- Exploitation No known exploitation
- Automatable Yes
- Technical impact Partial
- CISA SSVC
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.
Upgrade @modelcontextprotocol/sdk to 1.32.0 or later, and @modelcontextprotocol/server to 2.3.0 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
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 . 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(). …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @modelcontextprotocol/sdk | npm | >= 1.3.0, < 1.32.0 | 1.32.0 |
| @modelcontextprotocol/server | npm | >= 2.0.0, < 2.3.0 | 2.3.0 |
445 registered MCP servers install an affected version today, by the dependency versions a fresh install resolves.
- ai.ankimcp/anki-mcp-server@modelcontextprotocol/server@2.0.0
- ai.kloudy/kloudy@modelcontextprotocol/sdk@1.31.0
- ai.makerportal/compute@modelcontextprotocol/sdk@1.30.0
- ai.maxwellinternational/data@modelcontextprotocol/sdk@1.31.0
- ai.mentu/navigator@modelcontextprotocol/sdk@1.29.0
- ai.myspaice/spaces@modelcontextprotocol/sdk@1.29.0
- ai.pixeldojo/mcp@modelcontextprotocol/sdk@1.4.1
- ai.replylayer/replylayer@modelcontextprotocol/server@2.2.0
- ai.sanctuaryprotocol/sanctuary@modelcontextprotocol/sdk@1.30.0
- ai.satohub/kit@modelcontextprotocol/sdk@1.30.1
- ai.sendshort/sendshort@modelcontextprotocol/sdk@1.30.0
- ai.taasky/common-ground@modelcontextprotocol/server@2.0.0
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighFrame-count cap bypass in VideoMediaIO.load_base64 for video/jpeg via media_io_kwargs.video.num_framesvllm
- HighNemotron-VL processors disable Pillow decompression-bomb guard globally, enabling unauthenticated DoSvllm
- HighCross-tenant DoS via uninitialized LogprobsTensors with prompt_logprobsvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighMCP TypeScript SDK: Experimental tasks were not tied to the session that created them@modelcontextprotocol/sdk
- HighMCP TypeScript server SDK: Shared transport or server instances delivered one HTTP client's messages to another@modelcontextprotocol/server
- HighMCP TypeScript SDK: OAuth client could send credentials to an authorization server chosen by the MCP server@modelcontextprotocol/client, @modelcontextprotocol/sdk
- High@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse@modelcontextprotocol/sdk
- HighAnthropic's MCP TypeScript SDK has a ReDoS vulnerability@modelcontextprotocol/sdk
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.