CVE-2026-111768: MCP TypeScript SDK Memory Exhaustion Vulnerability

@modelcontextprotocol/sdk Updated 20 Oct 2026

Summary

20/10/2026
Yes i
High
7.5

CVE-2026-111768: In affected versions, servers put no limit on how many array elements and object keys they validated in one request. Affects @modelcontextprotocol/sdk versions >= 1.3.0, < 1.32.0. Fixed in 1.32.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The MCP TypeScript SDK is a software development kit that facilitates the integration of Model Context Protocol (MCP) into applications. It allows developers to build tools that interact with the MCP server, enabling efficient data handling and processing. However, certain versions of this SDK are vulnerable to a memory exhaustion issue due to improper validation of input data, which can lead to server crashes.

Vulnerability Detail

In affected versions of the MCP TypeScript SDK, there is no limit on the number of array elements and object keys validated in a single HTTP request. This can lead to a situation where a single request, even within the default size limit of 4 MiB, can exhaust the server's memory. The server may abort the process with a 'JavaScript heap out of memory' error. This vulnerability primarily affects servers that are exposed to untrusted clients, particularly those using the McpServer tools that handle arrays or records.

How To Fix

Minimum fixed version

1.32.0

This is the first release that contains the fix.

npm install @modelcontextprotocol/sdk@1.32.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If you cannot upgrade immediately, you can implement a workaround by lowering the request size limit using 'maxRequestBodySize'. This option requires at least version 1.30.1 of the SDK or 2.1.0 of the server. If you are using a reverse proxy, ensure it is configured to limit request sizes appropriately.

Conclusion

The MCP TypeScript SDK has a significant vulnerability that can lead to memory exhaustion on the server. It is crucial for users of affected versions to upgrade to the patched versions and configure the server settings appropriately to mitigate this risk. Monitoring tools like Vulert can help in identifying vulnerabilities in real-time.

See every vulnerability recorded for @modelcontextprotocol/sdk →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Affected versions of the MCP TypeScript SDK are from 1.3.0 to 1.31.0.

If upgrading is not possible, implement a workaround by lowering the request size limit using 'maxRequestBodySize'.

You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just the package-lock.json file.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Related vulnerabilities

Recent vulnerabilities recorded for @modelcontextprotocol/sdk.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.32.0

This is the first release that contains the fix.

npm install @modelcontextprotocol/sdk@1.32.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback