Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-116685 EUVD-2026-111367GHSA-5h93-6whr-6q8j

Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies

Published Oct 27, 2026 · Updated Oct 30, 2026 · Assigned by GitHub_M

Description

The Model Context Protocol Python SDK is the official Python SDK for Model Context Protocol servers and clients. From 1.8.0 until 1.30.0 and 2.2.0, streamable_http_client, streamablehttp_client, sse_client, ClientSessionGroup, OAuth, and create_mcp_http_client client paths enable follow_redirects and follow redirects to a different origin, forwarding caller-supplied custom credential headers and, for 307 or 308 responses, the request body. An attacker who can influence a trusted endpoint's redirect destination can receive that material. This issue is fixed in versions 1.30.0 and 2.2.0.

Affected products

VendorProductAffectedFixed
modelcontextprotocol python-sdk >= 1.8.0, < 1.30.0, >= 2.0.0, < 2.2.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mcp >= 2.0.0, < 2.2.0 2.2.0 GHSA-5h93-6whr-6q8j
PyPI mcp >= 1.8.0, < 1.30.0 1.30.0 GHSA-5h93-6whr-6q8j

References