Moonshot AI Kimi Code relies on untrusted input in a security decision
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
Moonshot AI Kimi Code versions 2.0.0, 2.0.1 and 2.0.2 are affected. The WorkspaceDirsService component relies on values read from the .kimi-code/local.toml file in a security decision without validating them (CWE-807). A local attacker with low privileges can manipulate the additional_dir argument to influence that decision. A public exploit is available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
Description from the CNA
A vulnerability was detected in Moonshot AI Kimi Code up to 2.0.2. This vulnerability affects unknown code of the file .kimi-code/local.toml of the component WorkspaceDirsService. Performing a manipulation of the argument additional_dir results in reliance on untrusted inputs in a security decision. The attack requires a local approach. The exploit is now public and may be used. Upgrading to version 2.1.0 is able to resolve this issue. Upgrading the affected component is recommended.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Moonshot AI | Kimi Code | 2.0.0; 2.0.1; 2.0.2 | 2.1.0 | Patch available | CNA |
- Kimi Code VendorMoonshot AI Affected 2.0.0; 2.0.1; 2.0.2 Fixed in 2.1.0 Patch available CNA
CPE names CNA · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:moonshot_ai:kimi_code:*:*:*:*:*:*:*:* | — | — | Moonshot AI |
- cpe:2.3:a:moonshot_ai:kimi_code:*:*:*:*:*:*:*:* Versions — — ·Moonshot AI
Remediation
Upgrade Moonshot AI Kimi Code to version 2.1.0, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-13
- Fix · CNA Kimi Code (Moonshot AI) Fixed in 2.1.0
Timeline
- 2026-11-11 Threatist record created from CVE-2026-126758
- 2026-11-12 Alias added: GHSA-75pq-p477-6h9c
- 2026-11-13 CISA SSVC decision points changed
References
More Moonshot AI vulnerabilities
- TI-2026-63668 Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection CVSS 4.0MEDIUM 5.3
- TI-2026-90175 Open redirect in Moonshot AI Kimi Code Web UI CVSS 4.0MEDIUM 5.3
- TI-2026-14384 Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects CVSS 3.1MEDIUM 5.5
- TI-2026-20230 [Kimi VS Code] Command Injection in publish scripts vsix-publish.js and ovsx-publish.js CVSS 3.1LOW 2.9
Sources
- CVE-2026-126758 · CVE Program
- CVE-2026-126758 · NVD
- FIRST EPSS
- GHSA-75pq-p477-6h9c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences