Intel

AIKIDO-2026-322535

rmcp is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor

CVE-2026-64684Published Aug 3, 2026
August 3, 2026

74

CVE Score

High

Exposure of Sensitive Information to an Unauthorized Actor

Are you affected? Scan for Free

TL;DR

The rmcp Streamable HTTP client transport builds its default HTTP client without disabling automatic redirect following. Caller-supplied custom headers, including secret authentication headers such as X-API-Key, are not marked sensitive, so they are forwarded to cross-origin redirect targets while only standard credential headers are stripped. A compromised or malicious MCP server that returns a cross-origin redirect can capture these credentials from the victim client. The fix disables automatic redirect following so custom headers are no longer leaked to redirect destinations.

How do I fix this?

Upgrade the rmcp library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the StreamableHttpClientTransport with secret custom headers configured via custom_headers.

Package

Versions

0.0.1 - 2.0.0

Fixed in 2.1.0

Background info

rmcp is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 0.0.1 - 2.0.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea