Model Context Protocol Python Sdk
Certain client paths in the SDK follow HTTP redirects to different origins, which can lead to the exposure of sensitive information. Specifically, when using `streamable http client`, `streamablehttp client`, `sse client`, `ClientSessionGroup`, `OAuth`, or the `create mcp http client` helper, the SDK forwards caller-supplied custom credential headers to the redirect destination. Additionally, for HTTP 307 or 308 responses, the request body is also forwarded. An attacker capable of influencing a trusted endpoint's redirect destination can capture these credentials and request bodies.