The advisory GHSA-46jr-4wx8-v453 / CVE-2026-111768 describes CWE-770 (Allocation of Resources Without Limits). In the affected @modelcontextprotocol/sdk (>=1.3.0, <1.32.0) and @modelcontextprotocol/server (>=2.0.0, <2.3.0) HTTP servers, no bound existed on how many array elements and object keys would be walked/validated for a single tools/call request, so one request under the default 4 MiB limit could drive the process to a JavaScript heap-out-of-memory abort.\n\nThe two reference patches (commit fd26801b for the 1.x package in src/server/mcp.ts and commit 6d8dbc6c for the 2.x package in packages/server/src/server/mcp.ts) both fix the issue the same way: they add a maxToolInputElements option on McpServer plus a helper toolInputElementCount(), and then insert an early guard at the top of the private McpServer.validateToolInput method:\n\n if (this._maxToolInputElements !== undefined &&\n toolInputElementCount(args, this._maxToolInputElements) > this._maxToolInputElements) { throw ... }\n\nvalidateToolInput is invoked from the tools/call request handler as await this.validateToolInput(tool, request.params.arguments, request.params.name); it is the function that receives the attacker-controlled arguments value and hands it to validateStandardSchema. That is precisely where the unbounded validation workload occurred, and it is the function the patch MODIFIED to introduce the missing bound. The helpers toolInputElementCount and resolveMaxToolInputElements are new code ADDED by the fix (mitigation), not vulnerable code, and must not be reported. The McpServer constructor is only modified to store the new option and is likewise not the vulnerable sink.\n\nFor a Node.js runtime profiler (which keeps the class name and drops module/namespace paths), the function would appear as McpServer.validateToolInput. McpServer is the class in both packages; the file differs (src/server/mcp.ts for @modelcontextprotocol/sdk 1.x, packages/server/src/server/mcp.ts for @modelcontextprotocol/server 2.x).