UTC
Medium

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
What it is

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.

What to do

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.

Affected
PackageRegistryAffectedFixed in
io.modelcontextprotocol:kotlin-sdk-clientMaven<= 0.13.00.14.0
Also in io.modelcontextprotocol:kotlin-sdk-client
  1. 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.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by the MCP reference servers project (https://github.com/modelcontextprotocol/servers/security/advisories); advisories published by the MCP Inspector project (https://github.com/modelcontextprotocol/inspector/security/advisories); advisories published by the MCP TypeScript SDK project (https://github.com/modelcontextprotocol/typescript-sdk/security/advisories); advisories published by the MCP Go SDK project (https://github.com/modelcontextprotocol/go-sdk/security/advisories); advisories published by the MCP Java SDK project (https://github.com/modelcontextprotocol/java-sdk/security/advisories); advisories published by the MCP Kotlin SDK project (https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories); advisories published by the MCP Rust SDK project (https://github.com/modelcontextprotocol/rust-sdk/security/advisories); advisories published by the MCP Ruby SDK project (https://github.com/modelcontextprotocol/ruby-sdk/security/advisories); advisories published by the MCP C# SDK project (https://github.com/modelcontextprotocol/csharp-sdk/security/advisories); advisories published by the MCP PHP SDK project (https://github.com/modelcontextprotocol/php-sdk/security/advisories); advisories published by the MCP Registry project (https://github.com/modelcontextprotocol/registry/security/advisories); advisories published by Open Terminal (https://github.com/open-webui/open-terminal/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-12-06. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].