Unbounded response-body buffering in rmcp Streamable HTTP clients allows memory exhaustion
GHSA-c9f9-cp8h-jcj5 · published 2026-11-05
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 3.9.0
Availability only. A client that connects to a malicious or compromised MCP server can be made to consume unbounded memory until it is OOM-killed. On desktop or agent MCP hosts this terminates the whole host application. The attack works during initialize, before any authentication. No confidentiality or integrity impact was identified. Preconditions: the victim client must connect to an attacker-controlled (or compromised) MCP server. The attacker needs no credentials on the client.
Upgrade rmcp to 3.9.0 or later.
The fix bounds non-streaming response bodies in both built-in clients: successful JSON bodies at 16 MiB and non-success bodies at 64 KiB. Bytes are counted while streaming (after decompression), an oversized Content-Length is rejected before the body is read, and an oversized body is rejected with instead of being truncated and parsed. Patched in rmcp 3.9.0.
Use a custom StreamableHttpClient that enforces a response body limit, or connect only to trusted MCP servers.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| rmcp | crates.io | >= 0.2.0, < 3.9.0 | 3.9.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
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation@modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighUnauthenticated unbounded tool_schemas cache growth in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- HighRMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discoveryrmcp
- HighRMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- Highrmcp Streamable HTTP server transport has a DNS rebinding vulnerabilityrmcp
- MediumOAuth authorization-server metadata SSRF filter checks host strings, not resolved addresses (incomplete fix of GHSA-c9xm-49cp-xcr9)rmcp
- Mediumrmcp OAuth client fetches server-controlled resource_metadata URLsrmcp
The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Rust SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.