# CVE-2026-95660: Moonshot AI Kimi Code arbitrary command injection in MCP configuration loader

Source: https://junglewise.ai/threats/cve-2026-95660-a-security-flaw-has-been-discovered-in-moonshot-ai-kimi-code-up  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-22. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-95660 · Severity: medium · CVSS 6.3 · Published 2026-09-22

Moonshot AI Kimi Code is a development environment that automatically loads Model Context Protocol (MCP) configurations from project files. An attacker can craft a malicious .mcp.json file in a project directory that executes arbitrary OS commands when a user opens the project, without any explicit user action or confirmation beyond opening the workspace. This allows code execution with the same privileges as the user running Kimi Code.

Technologies: [Moonshot AI Kimi Code](https://junglewise.ai/threats/technologies/kimi-code). Vendors: [Moonshot AI](https://junglewise.ai/threats/vendors/moonshot-ai).

## Quick answers

**Is CVE-2026-95660 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-95660 being exploited in the wild.

**How severe is CVE-2026-95660?** Medium severity, with a CVSS score of 6.3, published 22 September 2026.

**Which products and versions are affected?** Moonshot AI Kimi Code up to 0.31.0.

**Is there a fix for CVE-2026-95660?** A patch was published on 2026-07-31: Version 0.31.1 released Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-95660 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-95660?** Check whether you run Moonshot AI Kimi Code at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability is an OS command injection in the MCP Configuration Loader component (agent-core-v2/src/agent/mcp/config-loader.ts) triggered by auto-execution of untrusted .mcp.json files from the project directory. The attack requires the victim to open a malicious project but does not require any user interaction beyond that. The fix resolves fd/stty binary names to absolute paths to prevent $PATH planting attacks that allow injecting executables before the actual commands are invoked.

## Affected products

- Moonshot AI Kimi Code up to 0.31.0

## Timeline

- 2026-09-22: disclosed
- 2026-07-31: patched: Version 0.31.1 released

## References

- [https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?usp=sharing](https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?usp=sharing)
- [https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%400.31.1](https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%400.31.1)

## Related threats

- [Moonshot AI Kimi Code reliance on untrusted input in WorkspaceDirsService](https://junglewise.ai/threats/cve-2026-126758-a-vulnerability-was-detected-in-moonshot-ai-kimi-code-up-to-2-0)
- [Moonshot AI Kimi Code open redirect in Web UI](https://junglewise.ai/threats/cve-2026-126757-a-security-vulnerability-has-been-detected-in-moonshot-ai-kimi)
- [MoonshotAI Kimi Code SSRF bypass in FetchURL tool](https://junglewise.ai/threats/cve-2026-17534-moonshotai-kimi-code-ssrf-bypass-in-fetchurl-tool)
