CVE-2026-64684: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in modelcontextprotocol rust-sdk
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.
AI Analysis
Technical Summary
The rmcp crate's StreamableHttpClientTransport in versions before 2.1.0 builds its default HTTP client with reqwest's automatic redirect policy and applies caller-supplied 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 the custom headers (including API keys or tokens) are replayed to the new origin. This can lead to exposure of sensitive information to unauthorized actors. The standard Authorization header path is not affected because reqwest strips it on cross-origin redirects. The vulnerability is resolved in version 2.1.0.
Potential Impact
An attacker controlling or compromising an MCP endpoint can exploit this vulnerability by returning a cross-origin 307 or 308 redirect, causing the client to resend sensitive custom headers such as API keys or authentication tokens to an unintended origin. This leads to exposure of sensitive information, which an attacker can capture and reuse, potentially compromising the security of the affected system. The vulnerability does not affect the standard Authorization header, limiting the scope to custom headers.
Mitigation Recommendations
Upgrade to modelcontextprotocol rust-sdk version 2.1.0 or later, where this issue is fixed. The fix involves marking custom headers as sensitive to prevent them from being replayed on cross-origin redirects. No other mitigation is required as the vulnerability is addressed by this official fix.
CVE-2026-64684: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in modelcontextprotocol rust-sdk
Description
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.
CVSS v3.1
Score 6.8medium
Affected software
modelcontextprotocol
rust-sdk
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rmcp crate's StreamableHttpClientTransport in versions before 2.1.0 builds its default HTTP client with reqwest's automatic redirect policy and applies caller-supplied 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 the custom headers (including API keys or tokens) are replayed to the new origin. This can lead to exposure of sensitive information to unauthorized actors. The standard Authorization header path is not affected because reqwest strips it on cross-origin redirects. The vulnerability is resolved in version 2.1.0.
Potential Impact
An attacker controlling or compromising an MCP endpoint can exploit this vulnerability by returning a cross-origin 307 or 308 redirect, causing the client to resend sensitive custom headers such as API keys or authentication tokens to an unintended origin. This leads to exposure of sensitive information, which an attacker can capture and reuse, potentially compromising the security of the affected system. The vulnerability does not affect the standard Authorization header, limiting the scope to custom headers.
Mitigation Recommendations
Upgrade to modelcontextprotocol rust-sdk version 2.1.0 or later, where this issue is fixed. The fix involves marking custom headers as sensitive to prevent them from being replayed on cross-origin redirects. No other mitigation is required as the vulnerability is addressed by this official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-20T17:12:12.892Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aab0ad855bf5e2cf52e9606
Added to database: 09/16/2026, 21:32:08 UTC
Last enriched: 09/16/2026, 21:47:58 UTC
Last updated: 09/16/2026, 22:11:09 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.