mcp is vulnerable to Uncontrolled Resource Consumption
75
CVE Score
High
Uncontrolled Resource Consumption
The MCP::Server::Transports::StreamableHTTPTransport reads the entire HTTP request body into a Ruby string and parses it with JSON.parse before any session validation, with no size or Content-Length limit and no bound on JSON nesting. An unauthenticated remote client can send a single oversized JSON-RPC POST that inflates the worker's memory many times over. This causes memory-exhaustion denial of service and can OOM-kill the worker. The fix caps request body reads via max_request_bytes and limits JSON nesting, rejecting oversized requests.
Upgrade the mcp library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and expose the Streamable HTTP transport to untrusted clients.
0.1.0 - 0.22.0
Fixed in 0.23.0mcp is vulnerable to Uncontrolled Resource Consumption in versions 0.1.0 - 0.22.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.