Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade mcp to version 0.23.0 or higher.
mcp is a The official Ruby SDK for Model Context Protocol servers and clients
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the stdio transports lib/mcp/server/transports/stdio_transport.rb and lib/mcp/client/stdio.rb, which call IO#gets ($stdin.gets, @stdout.gets) without a length limit. An attacker who controls the byte stream feeding a stdio transport can exhaust memory and cause denial of service by sending a continuous stream of bytes with no newline, which gets accumulates into a single unbounded string. The attack is local and requires control of the peer on the pipe, either the parent process on the server side or the spawned server binary on the client side, and in typical deployments that peer already has privileges equal to or greater than the victim, leaving real risk to sandboxed servers, HTTP-to-stdio bridges, or runaway servers.