RCE in Moonshot Ai Kimi Code
CVE-2026-95660
A security flaw has been discovered in Moonshot AI Kimi Code up to 0.31.0. The affected element is an unknown function of the file agent-core-v2/src/agent/mcp/config-loader.ts of the component MCP Configuration Loader. The manipulation results in os command injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks. Upgrading to version 0.31.1 is sufficient to fix this issue. It is recommended to upgrade the affected component. Beyond the trust prompt, the fix resolves fd/stty binaries to absolute paths specifically "so untrusted workspaces cannot plant bare-name executables before confirmation," fixing a secondary $PATH path-planting vector alongside the primary untrusted-.mcp.json auto-spawn.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
No EPSS score from FIRST.org yet. New CVEs usually get one within a few days; no score means no signal yet, not low risk. How EPSS works.
Affected products
- Moonshot Ai Kimi Code — versions 0.1, 0.10, 0.11
Weakness classification (CWE)
References
- docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit (exploit)
- github.com/MoonshotAI/kimi-code/releases/tag/@moonshot-ai/kimi-code@0.31.1 (patch)
- vuldb.com/cve/CVE-2026-95660 (third-party-advisory)
- vuldb.com/submit/897071 (third-party-advisory)
- vuldb.com/vuln/408415 (vdb-entry)
- vuldb.com/vuln/408415/cti (signature, permissions-required)
- 134c704f-9b21-4f2e-91b3-4a467353bcc0
Frequently asked questions
- What is CVE-2026-95660?
- CVE-2026-95660 is a medium-severity vulnerability in Moonshot Ai Kimi Code, classified under Command Injection. CVSS score: 6.3/10. Published 2026-09-22.
- How severe is CVE-2026-95660?
- Medium severity. CVSS v3 base score is 6.3 out of 10.