UTC
Medium

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

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.

What to do

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.

If you cannot upgrade yet

Use a custom StreamableHttpClient that enforces a response body limit, or connect only to trusted MCP servers.

Affected
PackageRegistryAffectedFixed in
rmcpcrates.io>= 0.2.0, < 3.9.03.9.0

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.

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