INCIDENT MAP

Browse / MCP and Tool Server Flaws / CVE-2026-111768

MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation

CVE-2026-111768 ยท 2026-10-20 high

Class
MCP and Tool Server Flaws (filed by a model that read the advisory)
Technique
Denial of service
Affected
@modelcontextprotocol/sdk (npm)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

The MCP TypeScript SDK validates unlimited array elements and object keys, so one HTTP request within the size limit exhausts server memory. (Our summary, written by a model. The source text is below.)

Details

Summary

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.

Am I affected?

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:

Fix

Upgrade to:

Upgrading alone changes nothing. The patched versions add an McpServer option, maxToolInputElements, that is off by default. Make both of these changes:

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.