Unauthenticated Remote Denial of Service in MCP Kotlin SDK Streamable HTTP transport (request body size limit bypass)
CVE-2026-63658 · GHSA-f47c-p7wj-q7gx · published 2026-09-03
CVE-2026-63658 has no published CVE record
This advisory names the number, but the CVE list had published no record for it when ShieldMap last checked, on 2026-12-06. The number is reserved, so a record may still follow. Until one is published, look this advisory up as GHSA-f47c-p7wj-q7gx.
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 0.14.0
Type: Uncontrolled memory allocation → remote denial of service. Attacker: Unauthenticated; any client that can open a TCP connection to the MCP port and set the Host header. Preconditions: Server uses StreamableHttpServerTransport (the SDK's primary, recommended HTTP transport) or the legacy SSE transport. Default DNS-rebinding protection does not mitigate. Worst case: Single-request, repeatable crash of the server JVM and full availability loss for every client of that process. On hosts shared with other workloads, heap exhaustion can affect co-located services.
Upgrade io.modelcontextprotocol:kotlin-sdk to 0.14.0 or later.
Enforce the size cap during the body read instead of after it: read from call.receiveChannel() and abort once maxRequestBodySize + 1 bytes have been read, never calling receiveText() on an unbounded body. Do not treat a missing Content-Length as size 0; for chunked / HTTP-2 requests the body must be size-capped while streaming. Remove reliance on the post-read body.length check (it runs too late and is byte/char-mismatched). Apply the same bounded-read fix to SSEServerTransport.handlePostMessage(), which currently performs no size check at all (and is additionally missing a return after its "not initialized" branch, causing a fall-through and a double respond).
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| io.modelcontextprotocol:kotlin-sdk | Maven | <= 0.13.0 | 0.14.0 |
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighUnbounded session retention in the Streamable HTTP transport allows an initialize flood DoSio.modelcontextprotocol.sdk:mcp-core
- HighUnauthenticated unbounded tool_schemas cache growth in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- MediumUnbounded line buffer in StdioServerTransport/StdioClientTransport leads to memory exhaustion (DoS)io.modelcontextprotocol:kotlin-sdk, io.modelcontextprotocol:kotlin-sdk-client, io.modelcontextprotocol:kotlin-sdk-core, io.modelcontextprotocol:kotlin-sdk-server
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Kotlin SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.