Known CVEnpm/@modelcontextprotocol/sdk
CVE-2026-111768: MCP TypeScript SDK runs out of memory validating one large tool request
High
The SDK does not limit how many array elements and object keys it validates in one request, so a single HTTP request inside the default 4 MiB body limit can exhaust server memory and crash the process, with no login needed. stdio-only servers are not affected. Upgrade to 1.32.0 (or @modelcontextprotocol/server 2.3.0) and set maxToolInputElements, which is off by default, and a lower maxRequestBodySize.
Affected and fixed versions
Affected: @modelcontextprotocol/sdk >= 1.3.0, < 1.32.0; @modelcontextprotocol/server >= 2.0.0, < 2.3.0. Fixed in @modelcontextprotocol/sdk 1.32.0, @modelcontextprotocol/server 2.3.0.
Sources
See every known CVE, and the ones in the news, in the Learning Center