{"id":"CVE-2026-64684","published":"2026-09-16T21:18:48Z","modified":"2026-09-19T01:56:51Z","title":"RMCP: Custom HTTP headers leak to cross-origin redirect targets","vendor":"modelcontextprotocol","product":"rust-sdk","tier":"tail","description":{"text":"RMCP is an official Rust SDK for the Model Context Protocol. Prior to 2.1.0, the rmcp crate's StreamableHttpClientTransport in crates/rmcp/src/transport/common/reqwest/streamable_http_client.rs builds its default_http_client with reqwest's automatic redirect policy and applies caller-supplied values from StreamableHttpClientTransportConfig.custom_headers without marking them as sensitive. When a malicious or compromised MCP endpoint returns a cross-origin 307 or 308 redirect, reqwest follows the redirect and apply_custom_headers causes custom API keys or authentication tokens to be replayed to the new origin, where an attacker can capture and reuse them. The separate auth_header path is not affected because it uses the standard Authorization header, which reqwest strips on cross-origin redirects. This issue is fixed in version 2.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.005,"percentile":0.43738,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-9g45-5xwm-f3wc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/pull/936","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/commit/496902b9cf2c8a947454718da31829ae776b969b","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.1.0","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":8.75},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"rust-sdk","versions":["< 2.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-19T01:56:38.766580Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"rmcp","vulnerableRanges":["<2.1.0"],"patched":["2.1.0"],"from":["GHSA-9g45-5xwm-f3wc"],"provenance":"source"}],"summary":{"text":"The rmcp Rust SDK for the Model Context Protocol, prior to version 2.1.0, has a flaw in the StreamableHttpClientTransport client code, where caller-supplied custom headers are not marked as sensitive and the default HTTP client follows automatic redirects. An attacker controlling or compromising an MCP endpoint can send a cross-origin 307 or 308 redirect so that custom API keys or authentication tokens are replayed to the new origin and captured, requiring no authentication and no user interaction, though the client must be configured with custom headers.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:34Z"},"euvd":{"id":"EUVD-2026-81266","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-42559","published":"2026-05-14","fixed":"1.4.0","kev":false},{"cve":"CVE-2026-63127","published":"2026-09-16","fixed":"2.0.0","kev":false,"link":{"from":"CVE-2026-63127","to":"CVE-2026-64684","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:rmcp","fromFixed":"2.0.0","toFixed":"2.1.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.32,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-63128","published":"2026-09-16","fixed":"2.0.0","kev":false},{"cve":"CVE-2026-64684","published":"2026-09-16","fixed":"2.1.0","kev":false}],"package":"crates.io:rmcp"}}