Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker controls/compromises MCP endpoint
-
DeliveryRust client connects with custom API-key header
-
ExploitEndpoint returns cross-origin 307/308 redirect
-
Executionreqwest replays custom headers to attacker origin
-
ImpactAttacker captures and reuses API key
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires ALL of: (1) the victim application uses rmcp's StreamableHttpClientTransport (crates/rmcp/src/transport/common/reqwest/streamable_http_client.rs) at a version prior to 2.1.0; (2) it supplies sensitive credentials via StreamableHttpClientTransportConfig.custom_headers (e.g. x-api-key or a bearer token in a non-Authorization header) rather than the auth_header/standard Authorization path; and (3) the client connects to a malicious or compromised MCP endpoint that returns a cross-origin 307 or 308 redirect. LIMITING FACTORS: high attack complexity (attacker must control the trusted MCP server's responses); the standard Authorization header path is NOT affected because reqwest strips it on cross-origin redirects; and applications that do not put secrets in custom_headers are unaffected. |
| Impact | Signals are consistent and point to a MEDIUM, condition-gated confidentiality issue rather than an urgent priority. The vendor CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N = 6.8) is internally coherent: network vector with no authentication and no user interaction, but high attack complexity because the attacker must control or compromise the MCP endpoint the client trusts AND the victim application must have configured sensitive custom_headers on the StreamableHttpClientTransport. The scope change (S:C) and C:H are justified because leaked API keys/tokens grant an attacker access to a different origin/system than the vulnerable client. No EPSS score, no CISA KEV listing, and no weaponized public exploit were provided - the only proof-of-concept is a regression test embedded in the fix commit demonstrating header leakage, which is not the same as active exploitation. There are no conflicting signals: the description, CWE-200 (information disclosure), the tags, and the code evidence all align. Overall this is a legitimate credential-leakage bug worth patching for anyone using the affected transport with custom auth headers, but it is not mass-exploitable and there is no evidence of exploitation in the wild. |
| Exploit ScenarioDerived | A developer configures an RMCP-based Rust application to talk to an MCP server using StreamableHttpClientTransport with a custom API-key header (e.g. x-api-key). An attacker who operates or compromises that MCP endpoint returns a cross-origin 307/308 redirect; reqwest follows it and replays the custom API key to the attacker-controlled origin, where it is captured and reused. No public weaponized exploit exists, but the fix commit ships a test that demonstrates the header-leak behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Credential leakage in the rmcp Rust SDK (the official Rust SDK for the Model Context Protocol) prior to 2.1.0 allows an attacker who controls or compromises an MCP endpoint to harvest API keys and tokens from victim clients. StreamableHttpClientTransport builds its default reqwest HTTP client with automatic redirect following and replays caller-supplied StreamableHttpClientTransportConfig.custom_headers on cross-origin 307/308 redirects without marking them sensitive, so secrets such as x-api-key headers are forwarded to the redirect target where the attacker can capture and reuse them. The issue is not actively exploited per available intelligence, no public exploit code was identified at time of analysis, and exploitation is condition-gated: it requires a client that (a) runs a pre-2.1.0 version, (b) places secrets in custom_headers rather than the standard Authorization path, and (c) talks to a malicious or compromised MCP server, which is why the assessed vector carries high attack complexity and limits impact to confidentiality (CVSS 6.8, AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N, CWE-200). A vendor patch is available in rmcp 2.1.0.
RemediationAI
Vendor-released patch: upgrade the rmcp crate to 2.1.0 or later, which sets reqwest::redirect::Policy::none() on the default HTTP client so caller-supplied custom headers can no longer be replayed to a redirect target (release: https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.1.0; advisory: https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-9g45-5xwm-f3wc; fix commit 496902b9cf2c8a947454718da31829ae776b969b via PR #936). If upgrading is not immediately possible, two compensating controls are practical: first, migrate secrets out of custom_headers into the standard auth_header/Authorization path, since reqwest strips Authorization on cross-origin redirects - the trade-off is that this only accommodates standard bearer-style authentication and does not cover multi-header or proprietary credential schemes; second, supply a custom reqwest::Client configured with redirect::Policy::none() (or a same-origin-only redirect policy) to StreamableHttpClientTransport - the trade-off is that legitimate 307/308 redirects to different origins will no longer be followed automatically, so the application must detect the 3xx response and either re-issue the request manually or fail closed. Additional hardening, which complements rather than replaces the fix, is to pin or allowlist the MCP endpoint origins the client will contact and to treat any server-side redirect to a new origin during an authenticated session as hostile; note that rotating any credentials that were configured in custom_headers while running a pre-2.1.0 client is advisable if an MCP endpoint was ever compromised or untrusted.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The rmcp crate's StreamableHttpClientTransport in crates/rmcp/src/transport/common/reqwest/streamable_http_client.rs constructs its default reqwest client using reqwest's default redirect policy, which automatically follows 3xx responses. Under RFC 9110, 307 (Temporary Redirect) and 308 (Permanent Redirect) must preserve the HTTP method and, in practice, request headers across the redirect, unlike 301/302/303 which may be rewritten to GET. reqwest hardens a specific set of credentials on cross-origin redirects by stripping the standard Authorization, Cookie, and Proxy-Authorization headers, but it has no knowledge of application-specific headers injected via apply_custom_headers, so any secret carried in a custom header (for example x-api-key, X-Auth-Token, or a bearer token placed in a non-Authorization field) is re-sent verbatim to the new origin. The vulnerability class is CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The upstream fix takes the conservative approach of disabling redirect following entirely by setting reqwest::redirect::Policy::none() in the default client, so the 3xx response is surfaced to the transport as StreamableHttpError::UnexpectedServerResponse instead of being followed; the accompanying regression test spins up two local axum servers and asserts that a custom x-api-key header reaches the original endpoint but never the redirect target. The commit also imports additional model types (ClientJsonRpcMessage, ClientRequest, PingRequest, RequestId) purely to support that test, confirming the functional change is limited to the redirect policy.
Know when Rust gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
AC:H because the attacker must control the trusted endpoint and the victim must configure secret custom_headers; S:C and C:H because credentials leak to a different origin; no integrity or availability impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Command injection via Windows CreateProcess argument parsing affects multiple language runtimes and tooling (Node.js, PH
In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the ele
In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer ove
Stored cross-site scripting and open redirect in Warpgate's SSO endpoints (versions prior to 0.25.5) allow an unauthenti
library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginni
Denial of service in the Vector observability pipeline's `logstash` source (versions 0.15.0 through 0.56.x) allows a rem
The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, c
Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once fo
In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe c
Cargo prior to Rust 1.26.0 may download the wrong dependency if your package.toml file uses the `package` configuration
A parser differential in the Rust `zip` crate (zip2) through 9.0.4 lets a crafted archive present different filenames to
EUVD-2026-81266
GHSA-9g45-5xwm-f3wc
NVD
CVE.org
EPSS
VulDB
Exploit-DB