Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. rmcp
  4. ›
  5. CVE-2026-64684

CVE-2026-64684: RMCP: Custom HTTP headers leak to cross-origin redirect targets

September 17, 2026

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 default_http_client() 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 StreamableHttpClientTransportConfig.custom_headers are not classified as sensitive and are therefore forwarded verbatim to any redirect target — including an attacker-controlled server.

References

  • github.com/advisories/GHSA-9g45-5xwm-f3wc
  • github.com/modelcontextprotocol/rust-sdk/commit/496902b9cf2c8a947454718da31829ae776b969b
  • github.com/modelcontextprotocol/rust-sdk/pull/936
  • github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.1.0
  • github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-9g45-5xwm-f3wc
  • nvd.nist.gov/vuln/detail/CVE-2026-64684

Code Behaviors & Features

Detect and mitigate CVE-2026-64684 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

cargo/rmcp/CVE-2026-64684.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:11 +0000.