StreamableHttpClientTransport when parsing inline Server-Sent Events on HTTP POST responses | Medium || Field | Value |
|---|---|
| CVE / NVD | CVE-2026-63657 |
| Date (index) | 2026-09-03 |
| Affected product (index) | Unbounded memory growth in StreamableHttpClientTransport when parsing inline Server-Sent Events on HTTP POST responses |
| GHSA ID | GHSA-4x39-xh35-w96w |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-09-03 |
| Ecosystem | Maven |
| Component | io.modelcontextprotocol:kotlin-sdk-client (and umbrella kotlin-sdk) |
| EPSS score | Not scored (FIRST EPSS, 2026-11-09) |
| CVSS score | 6.5 medium CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| CWE | CWE-400, CWE-770 |
| Affected versions | io.modelcontextprotocol:kotlin-sdk-client (and umbrella kotlin-sdk) <= 0.13.0 |
| Fixed versions | 0.14.0 |
| Fix status | Patched in the versions named above |
| Exploit status | Public advisory. This note does not include exploit steps. |
| Notes | Updated on 2026-11-09 from the indexed advisory. The CVE record was not available from the MITRE CVE API. |
StreamableHttpClientTransport, v0.13.0) parses POST responses with Content-Type: text/event-stream in handleInlineSse by appending every data: line into a StringBuilder until a blank line ends the event. A malicious or compromised MCP HTTP server can send an endless stream of data: lines without the SSE event terminator (\n\n), causing unbounded heap growth in the client process until OOM or severe GC pressure. This is a denial-of-service against applications that connect to untrusted remote MCP servers over streamable HTTP. ### Details When performSend receives a successful POST whose body is text/event-stream, the client calls handleInlineSse instead of using the Ktor SSE plugin used for the long-lived GET stream: 178:180:kotlin-sdk-client/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/client/StreamableHttpClientTransport.kt ContentType.Text.EventStream -> { val replayMessageId = if (message is JSONRPCRequest) message.id else null val result = handleInlineSse(response, replayMessageId, options?.onResumptionToken) Inside handleInlineSse, each data: line is appended with no size limit; only an empty line flushes the buffer and dispatches JSON-RPC: ```426:476:kotlin-sdk-client/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/client/StreamableHttpClientTransDepends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content.
The published weakness mapping is CWE-400, CWE-770. Use the linked advisory for the upstream root cause.
MCP connects a model to tools, files, and credentials on a host or network. A flaw in transport checks, path checks, command handling, or token binding can become code execution, credential exposure, or access to another user’s session.
File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.
Upgrade to the patched version listed above. Apply any extra setting the advisory says is required after the upgrade.