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.
Affected software
| Software | Affected versions |
|---|---|
mcpPyPI · osv:PyPI:mcp |
|
About mcp
- Weekly downloads (PyPI)
- 81,015,080PyPI Stats, 23 Nov 2026
Vulnerabilities in mcp
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 1
- Known exploited
- 0
- CVE-2026-115563Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverHigh 7.5 19 Nov 2026
- CVE-2026-116684Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different resource serverMedium 6.8 27 Oct 2026
- CVE-2026-116686Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results against output schemasMedium 6.5 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116685
- GitHub Advisory Database https://github.com/advisories/GHSA-5h93-6whr-6q8j