Unbounded memory growth in `StreamableHttpClientTransport` when parsing inline Server-Sent Events on HTTP POST responses
CVE-2026-63657 · GHSA-4x39-xh35-w96w · published 2026-09-03
CVE-2026-63657 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-4x39-xh35-w96w.
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- Not scored
- Fixed in
- 0.14.0
This is a client-side denial-of-service (CWE-400 / CWE-770): unbounded memory use in the MCP client until OOM or severe GC, with little CPU cost to the attacker. Any application that uses StreamableHttpClientTransport or Client.connect over streamable HTTP against an untrusted MCP server (or over HTTP that can be tampered with) is affected. An adversary who controls the POST response can hang or crash the client process. There is no remote code execution and no direct compromise of the server; stdio-only clients and deployments that only talk to trusted local MCP endpoints are not affected.
Upgrade io.modelcontextprotocol:kotlin-sdk-client to 0.14.0 or later.
Enforce MAX_INLINE_SSE_EVENT_BYTES (e.g. 16 MiB, aligned with ReadBuffer) and per-line limits in handleInlineSse; fail the transport on exceed. Optionally treat non-empty sb on channel close as a protocol error.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| io.modelcontextprotocol:kotlin-sdk-client | 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.