Skip to main content
CVE-2026-116685VulnerabilityPublished

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

Affects mcpSource GCVE Database

0
Authoritative record:CVE-2026-116685· Medium 5.9

Not known to be exploited · CVSS 5.9 Medium : upgrade to 2.2.0 when convenient.

Data as of 27 Oct 2026, 22:27 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.2.0, 1.30.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade mcp to 2.2.0; mcp to 1.30.0.

Affected software

ProductAffectedFixed in
PyPImcpAffected
  • >=2.0.0 <2.2.0
Fixed in
  • 2.2.0
PyPImcpAffected
  • >=1.8.0 <1.30.0
Fixed in
  • 1.30.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade MCP SDK to version 1.30.0 (1.x) or 2.2.0 (2.x) or later, where redirects are restricted to the same origin and cross-origin redirects cause request failure. No code changes are required. If immediate upgrade is not possible, configure the HTTP client to disable automatic redirect following (follow_redirects=False). If credentials may have been exposed due to prior redirect following, rotate those credentials. Avoid relying on redirects to different hosts; instead, update endpoint URLs to the final target. The SDK provides an unsupported option to restore old behavior by supplying a custom HTTP client that follows all redirects, but this is discouraged due to security risks.

Description

The Model Context Protocol (MCP) Python SDK versions 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1 have a vulnerability where their HTTP client transports follow cross-origin HTTP redirects and send custom headers and request bodies to the redirected host. This behavior can expose sensitive headers such as API keys if the trusted endpoint redirects to an attacker-controlled domain. The SDK's OAuth client providers are similarly affected. The lone Authorization bearer header is not exposed due to existing HTTP library protections. The issue is fixed in MCP versions 1.30.0 and 2.2.0 by restricting redirects to the same origin only and failing otherwise.

References

Community reviews

Loading reviews…