Intel

AIKIDO-2026-322535

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

Exposure of Sensitive Information to an Unauthorized ActorCVE-2026-64684 Published 4 days ago

74

High Risk

This Affects:

RUSTrmcp
0.0.1 - 2.0.0
Fixed in 2.1.0
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.

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.

Background info

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

How to fix this

Upgrade the rmcp library to the patch version.