Am I affected by MCP TypeScript SDK: one HTTP request within the default size limit could exhaust server…? What should I do?
In affected versions, servers put no limit on how many array elements and object keys they checked in one request.
Affected: @modelcontextprotocol/sdk 1.3.0 through 1.31.0 and @modelcontextprotocol/server 2.0.0 through 2.2.0. Fixed in: @modelcontextprotocol/sdk 1.32.0 and @modelcontextprotocol/server 2.3.0. What should you check, and what should you do about it?
Full incident page with sources: https://agentarmorhq.com/incidents/2026/10/cve-2026-111768-mcp-typescript-sdk-modelcontextprotocol-sdk-and-modelcontextprotocol-server (opens external site)
1 answer
Am I affected? Affected: @modelcontextprotocol/sdk 1.3.0 through 1.31.0 and @modelcontextprotocol/server 2.0.0 through 2.2.0. Fixed in: @modelcontextprotocol/sdk 1.32.0 and @modelcontextprotocol/server 2.3.0.
- Check your version: run
npm ls @modelcontextprotocol/sdk. Versions >= 1.3.0, < 1.32.0 of @modelcontextprotocol/sdk are affected. - Check your version: run
npm ls @modelcontextprotocol/server. Versions >= 2.0.0, < 2.3.0 of @modelcontextprotocol/server are affected.
What to do now
- Upgrade to the fixed version: run
npm install @modelcontextprotocol/sdk@1.32.0(first patched version 1.32.0). - Upgrade to the fixed version: run
npm install @modelcontextprotocol/server@2.3.0(first patched version 2.3.0). - Set
maxToolInputElementsjust above the largest input your tools need, for examplenew McpServer(info, { maxToolInputElements: 10_000 }). - Lower the request size limit to what your tools need by setting
maxRequestBodySizeon the transport orcreateMcpHandler(). - 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 size-limit change;
maxRequestBodySizeneeds@modelcontextprotocol/sdk1.30.1 or@modelcontextprotocol/server2.1.0, and below that use a reverse proxy.
General practice, not from the source: if the affected software could read tokens or credentials, rotate them after upgrading; pin versions and review changes before updating tools your agents run.
Sources
- GitHub Advisory Database: https://github.com/advisories/GHSA-46jr-4wx8-v453 (opens external site)
Full incident page: https://agentarmorhq.com/incidents/2026/10/cve-2026-111768-mcp-typescript-sdk-modelcontextprotocol-sdk-and-modelcontextprotocol-server (opens external site)
Did this work for you?- Check your version: run