GHSA-46jr-4wx8-v453: MCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation
- Identifiers
- CVE-2026-111768GHSA-46jr-4wx8-v453
- Published
- Record updated
- Affected
- @modelcontextprotocol/server >= 2.0.0, < 2.3.0, fixed in 2.3.0, released October 2, 2026, 18 days before disclosure
- @modelcontextprotocol/sdk >= 1.3.0, < 1.32.0, fixed in 1.32.0, released October 2, 2026, 18 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
The MCP TypeScript SDK (`@modelcontextprotocol/sdk` 1.3.0 through 1.31.0, and `@modelcontextprotocol/server` 2.0.0 through 2.2.0) placed no limit on the number of array elements and object keys it validated per request. A single HTTP request within the default 4 MiB size limit can exhaust server memory and abort the process with `JavaScript heap out of memory`. No credentials are needed unless requests are authenticated before reaching the SDK, and stdio-only servers are not affected.
Mitigation
Upgrade to `@modelcontextprotocol/sdk` 1.32.0 or later, or `@modelcontextprotocol/server` 2.3.0 or later, then set the new `maxToolInputElements` option on `McpServer` (off by default), for example `new McpServer(info, { maxToolInputElements: 10_000 })`. Also lower the request size limit with `maxRequestBodySize` on the transport or `createMcpHandler()`, or the body parser's limit if the body is parsed manually. If upgrading is not possible yet, set `maxRequestBodySize`, which requires `@modelcontextprotocol/sdk` 1.30.1 or `@modelcontextprotocol/server` 2.1.0, or use a reverse proxy.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- @modelcontextprotocol/sdknpmLLM dependency since 2024-11-11, 19 tracked dependents
- @modelcontextprotocol/servernpmNo LLM dependency detected, 3 tracked dependents
Topics
Related items
- MediumCVE-2026-139894: davila7 claude-code-templates missing authentication in Claude API proxySame vendor, NVD/CVE Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSame vendor, GitHub Advisory Database
- HighCVE-2026-111770: Model Context Protocol TypeScript SDK misroutes responses across clientsSame vendor, NVD/CVE Database
- HighCVE-2026-88968: Claude Code Edit tool symlink race overwrites files outside workspace on macOSSame vendor, NVD/CVE Database
- HighCVE-2026-88066: Claude Desktop on Windows git.exe execution via search pathSame vendor, NVD/CVE Database