cd /news/ai-agents/cve-2026-116685-cve-2026-116685-cros… · home › topics › ai-agents › article
[ARTICLE · art-159322] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↓ negative

CVE-2026-116685: CVE-2026-116685: Cross-Origin Redirect Credential and Request Payload Disclosure in MCP Python SDK

A sensitive information disclosure vulnerability, CVE-2026-116685 (CVSS 5.9), was disclosed in the official Model Context Protocol Python SDK, affecting versions 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1. The SDK's Streamable HTTP, SSE, and OAuth client transports unconditionally followed cross-origin redirects, forwarding custom authentication headers such as X-API-Key and, on HTTP 307/308 responses, replaying full POST bodies with JSON-RPC or OAuth payloads to untrusted hosts. Versions 1.30.0 and 2.2.0 restrict redirect traversal to the original endpoint origin, and users who cannot upgrade immediately are advised to set follow_redirects=False on custom httpx clients.

read2 min views1 publishedOct 28, 2026

Vulnerability ID: CVE-2026-116685 CVSS Score: 5.9

Published: 2026-10-27 CVE-2026-116685 (GHSA-5h93-6whr-6q8j) is a sensitive information disclosure vulnerability in the official Model Context Protocol (MCP) Python SDK (mcp on PyPI). In versions 1.8.0 through 1.29.1 and 2.0.0 through 2.1.1, the SDK's HTTP-based client transports—including Streamable HTTP, Server-Sent Events (SSE), and OAuth client flows—unconditionally enable automatic HTTP redirect following (follow_redirects=True) across origin boundaries. When a configured endpoint returns a redirect to an external origin, the HTTP client forwards caller-supplied custom authentication headers (such as X-API-Key) and, in the case of HTTP 307 or 308 responses, replays the full POST request body containing JSON-RPC payloads or OAuth parameters to the untrusted destination.

The Model Context Protocol (MCP) Python SDK (mcp versions 1.8.0–1.29.1 and 2.0.0–2.1.1) unconditionally follows cross-origin HTTP redirects in its Streamable HTTP, SSE, and OAuth client transports. If a trusted MCP server or intermediate proxy redirects a client to an external domain, custom credential headers (e.g., X-API-Key) and HTTP 307/308 POST request bodies are transmitted to the external host. Users should upgrade to version 1.30.0 or 2.2.0, which restrict redirect traversal strictly to the original endpoint origin.

mcp PyPI package)1.30.0) 2.2.0) Restrict HTTP client redirects to the endpoint origin (#3397) - v2.x remediation

Restrict HTTP client redirects to the endpoint origin (v1.x) (#3448) - v1.x backport Allow same-origin redirects when original URL has userinfo (#3450)

follow_redirects=False) on custom httpx.AsyncClient instances or httpx_client_factory callables passed to MCP client transports if immediate upgrading is blocked.X-Forwarded-Proto headers and use canonical endpoint URLs so legitimate requests do not trigger cross-scheme redirects.X-API-Key) or proprietary authentication tokens used by MCP clients that communicated with endpoints susceptible to open redirects or third-party domain redirects. Remediation Steps:

pip show mcp or inspect requirements.txt, pyproject.toml, uv.lock, or poetry.lock). pip install --upgrade "mcp>=1.30.0,<2.0.0". pip install --upgrade "mcp>=2.2.0". Read the full report for CVE-2026-116685 on our website for more details including interactive diagrams and full exploit analysis.

── more in #ai-agents 4 stories · sorted by recency
── more on @model context protocol 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/cve-2026-116685-cve-…] indexed:0 read:2min 2026-10-28 · —