Intel

AIKIDO-2026-248348

mcp is vulnerable to Uncontrolled Resource Consumption

Uncontrolled Resource Consumption Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 25, 2026

65

Medium Risk

This Affects:

RUBYmcp
0.24.0 - 0.24.0
Fixed in 0.25.0
Are you affected? Scan for Free

TL;DR

The HTTP client transport in MCP::Client::HTTP reads server responses through an incremental streaming callback that buffers Server-Sent Events and JSON response bodies in memory. A message the server never completes, such as an SSE event or JSON body without a terminator, is appended to the in-memory buffer with no size limit. A malicious or compromised MCP server can exploit this to grow the client's memory until the process is exhausted, causing a denial of service. The fix enforces a configurable maximum per-message size on both the SSE and JSON paths and aborts the stream when the limit is exceeded.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and connect the HTTP client transport to untrusted MCP servers.

Background info

mcp is vulnerable to Uncontrolled Resource Consumption in versions 0.24.0 - 0.24.0.

How to fix this

Upgrade the mcp library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform