kimi-cli · Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom headers and
Affects kimi-cliSource GCVE Database
Not known to be exploited · CVSS 5.9 Medium : upgrade to 1.50.0 when convenient.
Data as of 30 Oct 2026, 06:59 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 5.9 |
|---|
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.50.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 27 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 29 Oct 2026.
What to do
Upgrade kimi-cli to 1.50.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewkimi-clipkg:brew/kimi-cliOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade the MCP Python SDK to version 1.30.0 (1.x) or 2.2.0 (2.x) or later, where redirects are restricted to the same origin or http-to-https upgrades on the same host. No code changes are needed. Until upgrading, disable automatic redirect following by supplying an HTTP client with follow_redirects set to False. If a client may have already followed a redirect to an untrusted host, rotate any credentials that were sent. Avoid relying on redirects to different hosts; instead, set the endpoint URL directly to the final target. The SDK provides an unsupported workaround to restore old behavior by using a custom HTTP client that follows all redirects, but this is not recommended due to credential exposure 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, on certain redirects, the request body to the redirected host. This can expose sensitive headers like API keys to unintended origins if the trusted endpoint redirects to a different host. The SDK now restricts redirects to the same origin or an http-to-https upgrade on the same host. Fixed in versions 1.30.0 and 2.2.0.
References
- github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-5h93-6whr-6q8j (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3397 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/3448 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/2106335745563b2321b8c73fef2c12903d00aa6e (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/c6762e821c527925f0b617db216d00fbd1d0bf99 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v1.30.0 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v2.2.0 (opens in a new tab)