mcp-core is vulnerable to Denial of Service (DoS)
75
High Risk
The Streamable HTTP, Stateless, and SSE server transports buffer an entire incoming HTTP request body into memory before parsing it, without any limit on how large that body can be. A request that streams a large body using chunked transfer encoding bypasses the Content-Length check and is read in an unbounded loop. Processing such a request drives heap growth until the JVM throws OutOfMemoryError, denying service to other clients. The fix adds a configurable request body size limit and rejects oversized requests with an HTTP 413 response.
You are affected if you are using a version that falls within the vulnerable range and you expose one of the HTTP server transports without enforcing request body size limits.
mcp-core is vulnerable to Denial of Service (DoS) in versions 0.18.0 - 0.18.3, 1.0.0 - 1.1.3 and 2.0.0 - 2.0.0.
Upgrade the mcp-core and/or the io.modelcontextprotocol.sdk:mcp-core 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