CVE-2026-116685

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

Published Oct 27, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability lies in the Model Context Protocol Python SDK's handling of HTTP redirects. When follow_redirects is enabled, the SDK follows redirects to a different origin and forwards any custom credential headers supplied by the caller. For 307 or 308 redirection responses, it also forwards the request body. An attacker who can influence the redirect destination of a trusted endpoint can capture the forwarded credentials and request body, exposing sensitive information. The weakness is captured as information disclosure (CWE-200, CWE-201).

Affected Systems

All releases of the Model Context Protocol Python SDK from version 1.8.0 up to, but not including, 1.30.0, and any 2.x releases older than 2.2.0, are susceptible. The SDK components affected include streamable_http_client, streamablehttp_client, sse_client, ClientSessionGroup, OAuth, and the create_mcp_http_client constructor. The vulnerability is fixed starting with SDK version 1.30.0 and 2.2.0.

Risk and Exploitability

The CVSS score of 5.9 classifies the issue as moderate severity. The EPSS score is less than 1%, indicating a low likelihood of exploitation. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog. Successful exploitation requires an attacker to control or influence a redirect response from a trusted server endpoint; once achieved, the attacker can obtain the forwarded headers and body. Because the attack path involves manipulating HTTP redirects, the environmental prerequisites are modest but the impact of disclosed credentials makes it a concern for organizations using the SDK without additional safeguards.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a fixed SDK release (>=1.30.0 or 2.2.0).
  • If an upgrade cannot be performed immediately, disable the follow_redirects option in the SDK configuration or client constructor to prevent automatic following of redirects.
  • As a temporary workaround, validate redirect URLs to ensure they point to the same origin as the original request before forwarding credentials or body.

Generated by OpenCVE AI on November 6, 2026 at 02:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5h93-6whr-6q8j Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Modelcontextprotocol
Modelcontextprotocol python-sdk
Vendors & Products Modelcontextprotocol
Modelcontextprotocol python-sdk
Type Values Removed Values Added
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.
Title Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
Weaknesses CWE-200
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 30, 2026, 3:03 PM
Reserved
Oct 26, 2026, 8:00 PM
Status
Deferred
Published
Oct 27, 2026, 8:17 PM
Modified
Oct 30, 2026, 4:17 PM
Severity
Moderate
Public date
Oct 27, 2026, 7:26 PM