GHSA-5h93-6whr-6q8j
Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and bodies
Published Oct 27, 2026 · Source: GitHub Advisory Database (via OSV.dev). Data collected Sat, 28 Nov 2026 19:06:22 GMT.
The facts
| Advisory id | GHSA-5h93-6whr-6q8j |
|---|---|
| CVE | CVE-2026-116685 |
| Package | mcp (Python SDK) PyPI: mcp |
| Published | Oct 27, 2026 |
| Source severity | MODERATE |
| Our severity | medium · 50 Advisory severity: MODERATE · Confidence: GitHub Advisory Database / OSV · See the rules |
| Fix | Fixed in 1.30.0 |
| Source | GitHub Advisory Database (via OSV.dev) |
Summary AI summary
Open-source package mcp Python SDK follows cross-origin redirects, potentially exposing custom headers and request bodies
Excerpt from the source
Copied from the official record, trimmed. Read the full source before acting.
### Summary 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-
What to do
Update mcp to version 1.30.0 or later to resolve the issue
Other recent advisories for this package
- GHSA-qx49-fqc8-xw99 · Nov 19, 2026 · Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP server
- GHSA-w4fh-qvv9-3v23 · Oct 27, 2026 · Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource server
- GHSA-rwrf-2pqf-9j8j · Oct 27, 2026 · Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemas
- GHSA-84m7-p3x7-pcfv · Oct 15, 2026 · MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion
This page restates a public advisory. Confirm the facts on the linked source before you act. BigBadAI is independent and not affiliated with the package authors. Data collected .