mcp is vulnerable to Uncontrolled Resource Consumption
65
Medium Risk
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.
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.
mcp is vulnerable to Uncontrolled Resource Consumption in versions 0.24.0 - 0.24.0.
Upgrade the mcp library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant