All vulnerabilities

PyPI

CVE-2026-116685

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

Severity
Medium 5.9
Published
27 Oct 2026
Last changed
27 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.30.0, 2.2.0
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Information exposure (CWE-200)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-5h93-6whr-6q8j
Sources
OSV.dev and GitHub

Description

In affected versions, the SDK's Streamable HTTP and SSE client transports followed HTTP redirects to any host. If the configured MCP endpoint answered with a redirect to a different origin:

  • custom headers set on the client (for example an X-API-Key credential) were sent to that origin, and
  • on a 307 or 308 redirect the request body was re-sent there too.

The SDK's OAuth client providers followed redirects on their own discovery, registration and token requests in the same way.

A lone Authorization bearer header was not exposed; the HTTP library already drops it on cross-origin redirects.

Anyone able to make an endpoint you trust redirect elsewhere (a stale redirect to a lapsed domain, a misrouted proxy rule, redirect logic an attacker can influence) could capture that material. A server that is itself malicious gains nothing this way; it already receives your requests directly.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
mcpPyPI · osv:PyPI:mcp
  • From 1.8.0 before 1.30.0
  • From 2.0.0 before 2.2.0

About mcp

Weekly downloads (PyPI)
81,015,080PyPI Stats, 23 Nov 2026

References