MCP Ruby SDK: Streamable HTTP transport lacks DNS-rebinding (Host/Origin) protection
CVE-2026-63118 · GHSA-rjr6-rcgv-9m7m · published 2026-07-30
- Severity
- Medium
- CVSS score
- 6.9
- Chance of exploitation (EPSS)
- 0.24%
- Fixed in
- 0.23.0
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
An attacker who can get a victim to open a web page can reach any MCP server the victim runs locally over the Streamable HTTP transport (e.g. a developer-tools or filesystem MCP server on localhost). Because the transport issues a session and dispatches tools/list / tools/call from a foreign Host/Origin with no rejection, the attacker can drive arbitrary server-exposed tools and read their results, exfiltrating local data (files, secrets, command output) to the attacker's origin. The blast radius is whatever the locally-running MCP server exposes.
Upgrade mcp to 0.23.0 or later.
Add an opt-in but secure-by-default Host/Origin allowlist to StreamableHTTPTransport, mirroring the DNS-rebinding protection that the TypeScript, Python, Go, Rust, C#, and Java MCP SDKs already ship: Accept allowedhosts: and allowedorigins: keyword arguments in initialize. In handlerequest (before any dispatch), read request.env["HTTPHOST"] and request.env["HTTPORIGIN"]. If an allowlist is configured and the value is not on it, return 403 Forbidden. Default to allowing only loopback hosts (127.0.0.1, [::1], localhost) and an empty/absent Origin, so a stock local deployment is protected against rebinding out of the box while same-process and same-host clients keep working.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| mcp | RubyGems | <= 0.22.0 | 0.23.0 |
- CriticalMarimo: Pre-Auth Remote Code Execution via Terminal WebSocket Authentication BypassmarimoExploited
- CriticalLangflow CORS misconfiguration enables Account Takeover and RCElangflowExploited
- HighLiteLLM: MCP Authentication Bypass via OAuth2 Passthrough FallbacklitellmExploited
- HighLangflow: IDOR Vulnerability in `/api/v1/responses` Endpoint Allows Authenticated Attackers to Access Another User's FlowlangflowExploited
- CriticalTodoist MCP Server: Browser DNS rebinding lets websites write and delete Todoist data through local MCP server@doist/todoist-mcp
- CriticalLangflow: Unauthenticated Flow Execution via Webhook Authentication Bypasslangflow
- HighMCP Ruby SDK: Ruby SSE Session Poisoningmcp
- HighMCP Ruby SDK: Unbounded JSON-RPC request body causes uncontrolled memory allocation in StreamableHTTPTransportmcp
- HighMCP Ruby SDK: Insufficient Session Binding Allows SSE Stream Hijacking via Session ID Replaymcp
- MediumMCP Ruby SDK: Unbounded session retention in StreamableHTTPTransport allows memory exhaustion via initialize floodmcp
- MediumMCP Ruby SDK: Unbounded line buffer in stdio transports leads to memory exhaustion (DoS)mcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.