RMCP: Custom HTTP headers leak to cross-origin redirect targets
CVE-2026-64684 · GHSA-9g45-5xwm-f3wc · published 2026-09-17
- Severity
- Medium
- CVSS score
- 6.8
- Chance of exploitation (EPSS)
- 0.50%
- Fixed in
- 2.1.0
- Exploitation No known exploitation
- Automatable No
- Technical impact Partial
- CISA SSVC
The rmcp crate's StreamableHttpClientTransport forwards caller-supplied custom HTTP headers (such as X-API-Key, X-Auth-Token, Api-Key) to cross-origin redirect targets. The defaulthttpclient() function builds a reqwest::Client without a redirect policy override, so the default limited(10) policy follows 307/308 redirects and forwards all per-request headers except Authorization, Cookie, and Proxy-Authorization. Custom auth headers injected via are not classified as sensitive and are therefore forwarded verbatim to any redirect target — including an attacker-controlled server.
Upgrade rmcp to 2.1.0 or later.
In defaulthttpclient(), disable automatic redirect following: The transport can then inspect 3xx responses and decide whether to follow, stripping sensitive headers before doing so. Alternatively, use to remove auth headers before the redirect is followed.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| rmcp | crates.io | < 2.1.0 | 2.1.0 |
- CriticalPhoenix: Format String Injection in applyChatTemplatearize-phoenix
- CriticalFlowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected serviceflowise
- CriticalMLflow: Environment variable injection in AI Gateway secrets enables server-side credential exfiltrationmlflow
- CriticalvLLM has RCE In Video Processingvllm
- HighConfig revision hashes could expose password verifiersopenclaw
- Highn8n: Shared Credential Header Leak via HTTP Request Pagination Expressionn8n, n8n, n8n
- 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
- Mediumrmcp OAuth client fetches server-controlled resource_metadata URLsrmcp
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.