fix(mcp): rmcp 3.9, with the Host check of the Streamable HTTP server #909

Merged
sharang merged 1 commits from fix/rmcp-3 into main 2026-11-05 19:31:09 +00:00
Owner

Problem

rmcp 0.16.0 has three advisories in the Streamable HTTP server transport that compliance-mcp serves:

Advisory Fixed in What
CVE-2026-42559 / RUSTSEC-2026-0189 1.4.0 DNS rebinding: no Host validation
CVE-2026-63128 2.0.0 Unauthenticated, permanent session-table leak, a remote DoS
CVE-2026-63127 2.0.0 Missing resource field validation in OAuth metadata discovery

.cargo/audit.toml ignored the first one, sized as a multi-hour migration.

Change

  • Version: rmcp 0.16.0 -> 3.9.0 (also rmcp-macros and sse-stream). The tool macros (#[tool_router], #[tool], #[tool_handler], Parameters) are unchanged.
  • API changes: Content is now ContentBlock (15 call sites). get_info returns ServerConfig (ServerInfo is deprecated) built with its builder: same protocol version (2024-11-05), server info and instructions.
  • Host check: rmcp 3 accepts only loopback Host headers by default, which would refuse every request through the ingress. MCP_ALLOWED_HOSTS (comma-separated hostnames or host:port) names the hosts the server answers to. Unset, the Host header is not checked and a warning is logged, the behaviour so far, so a deployment keeps working until it is set. Documented in .env.example, with unit tests for the parsing.
  • Audit: the rmcp ignore in .cargo/audit.toml is removed.

Deploy

So that the DNS-rebinding fix takes effect, orca-platform should set MCP_ALLOWED_HOSTS for the MCP container on stage, and later prod. The value is the public hostname (stage: pruefwerk-stage.breakpilot.com, and comp-mcp-dev.breakpilot.com if that is still routed) plus the name the dashboard reaches it at inside the network. The session-leak and OAuth fixes need no configuration.

Check on stage

After deploy, the dashboard's MCP card shows running, and an MCP client with a tenant token can list the tools and call list_targets.

🤖 Generated with Claude Code

## Problem rmcp 0.16.0 has three advisories in the Streamable HTTP server transport that `compliance-mcp` serves: | Advisory | Fixed in | What | | --- | --- | --- | | CVE-2026-42559 / RUSTSEC-2026-0189 | 1.4.0 | DNS rebinding: no `Host` validation | | CVE-2026-63128 | 2.0.0 | Unauthenticated, permanent session-table leak, a remote DoS | | CVE-2026-63127 | 2.0.0 | Missing resource field validation in OAuth metadata discovery | `.cargo/audit.toml` ignored the first one, sized as a multi-hour migration. ## Change - **Version:** `rmcp` 0.16.0 -> 3.9.0 (also rmcp-macros and sse-stream). The tool macros (`#[tool_router]`, `#[tool]`, `#[tool_handler]`, `Parameters`) are unchanged. - **API changes:** `Content` is now `ContentBlock` (15 call sites). `get_info` returns `ServerConfig` (`ServerInfo` is deprecated) built with its builder: same protocol version (2024-11-05), server info and instructions. - **Host check:** rmcp 3 accepts only loopback `Host` headers by default, which would refuse every request through the ingress. **`MCP_ALLOWED_HOSTS`** (comma-separated hostnames or `host:port`) names the hosts the server answers to. **Unset, the `Host` header is not checked** and a warning is logged, the behaviour so far, so a deployment keeps working until it is set. Documented in `.env.example`, with unit tests for the parsing. - **Audit:** the rmcp ignore in `.cargo/audit.toml` is removed. ## Deploy So that the DNS-rebinding fix takes effect, orca-platform should set `MCP_ALLOWED_HOSTS` for the MCP container on stage, and later prod. The value is the public hostname (stage: `pruefwerk-stage.breakpilot.com`, and `comp-mcp-dev.breakpilot.com` if that is still routed) plus the name the dashboard reaches it at inside the network. The session-leak and OAuth fixes need no configuration. ## Check on stage After deploy, the dashboard's MCP card shows *running*, and an MCP client with a tenant token can list the tools and call `list_targets`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-11-05 19:13:28 +00:00
fix(mcp): rmcp 3.9, with the Host check of the Streamable HTTP server
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m32s
CI / Check (pull_request) Successful in 17m1s
4fd5639464
rmcp 0.16.0 has three advisories in the Streamable HTTP server transport
the MCP server uses: DNS rebinding (CVE-2026-42559, no Host validation),
an unauthenticated session-table leak (CVE-2026-63128, remote DoS) and
missing resource validation in OAuth metadata discovery (CVE-2026-63127).

- rmcp and rmcp-macros 0.16.0 -> 3.9.0. The tool macros are unchanged;
  Content is now ContentBlock, and get_info returns a ServerConfig built
  with its builder (same protocol version, server info and instructions).
- rmcp 3 accepts only loopback Host headers by default. MCP_ALLOWED_HOSTS
  names the hosts the server answers to, comma-separated (the public
  hostname and the in-network name). Unset, the Host header is not checked
  and a warning says so, so a deployment keeps working until it is set.
- The rmcp ignore in .cargo/audit.toml (RUSTSEC-2026-0189) is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang force-pushed fix/rmcp-3 from cc0b1e1ec0 to 4fd5639464 2026-11-05 19:13:28 +00:00 Compare
sharang merged commit c28f9e186b into main 2026-11-05 19:31:09 +00:00
Sign in to join this conversation.