Live › vulnerability › CVE-2026-111768
Go to dashboardThe MCP TypeScript SDK did not limit how many array elements and object keys it validated per HTTP request, so one request under the default 4 MiB body limit can exhaust server memory and crash the Node process with an out-of-memory abort. An unauthenticated remote client can trigger it on any HTTP MCP server that exposes tools with array or record inputs.
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-23 19:11 UTC. All times on this page are UTC.
| Product | Ecosystem | 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 |
Check the installed version: npm ls @modelcontextprotocol/sdk @modelcontextprotocol/server Affected if sdk is 1.3.0 to 1.31.0 or server is 2.0.0 to 2.2.0, and the server uses HTTP transport with McpServer tools that take arrays or records.
1.32.0 or @modelcontextprotocol/server to 2.3.0, then set maxToolInputElements (e.g. new McpServer(info, { maxToolInputElements: 10_000 })) and lower maxRequestBodySize on the transport or createMcpHandler()1.30.1 or server 2.1.0) or enforce a body limit at a reverse proxyEach row is the first time that source carried this signal. The analyst’s rows are its own findings.
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.
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:
@modelcontextprotocol/sdk 1.3.0 through 1.31.0@modelcontextprotocol/server 2.0.0 through 2.2.0Upgrade to:
@modelcontextprotocol/sdk 1.32.0 or later@modelcontextprotocol/server 2.3.0 or laterUpgrading alone changes nothing. The patched versions add an McpServer option, maxToolInputElements, that is off by default. Make both of these changes:
maxToolInputElements just above the largest input your tools need, for example new McpServer(info, { maxToolInputElements: 10_000 }). It counts array elements and object keys in a call's arguments. A call over the limit gets an isError: true result.maxRequestBodySize on the transport or createMcpHandler(). If you parse the body yourself, for example with express.json() or Fastify, set that parser's limit.If you cannot upgrade yet, make the second change. maxRequestBodySize needs @modelcontextprotocol/sdk 1.30.1 or @modelcontextprotocol/server 2.1.0. Below that, use a reverse proxy.
This page as .md · .json · in your agent: get_signal("CVE-2026-111768")
GitHub Advisory Database, CC-BY 4.0. Posts quoted belong to their authors.