UTC
High

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

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.

What to do

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).

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