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
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 4fd5639464 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
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>
2026-11-05 20:13:20 +01:00