CVE-2026-95660
Received Received - Intake

Command Injection in Moonshot AI Kimi Code

Vulnerability report for CVE-2026-95660, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-22

Last updated on: 2026-09-22

Assigner: VulDB

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-22
Last Modified
2026-09-22
Generated
2026-09-22
AI Q&A
2026-09-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
moonshot_ai kimi_code to 0.31.0 (inc)
moonshot_ai kimi_code to 0.31.1 (exc)
moonshot_ai kimi_code to 0.27.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
CWE-77 The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an OS command injection flaw in Moonshot AI Kimi Code up to version 0.31.0. It exists in the MCP Configuration Loader component, specifically in the file agent-core-v2/src/agent/mcp/config-loader.ts. The issue allows remote attackers to execute arbitrary commands on the system by manipulating the untrusted input.

Impact Analysis

An attacker could remotely execute arbitrary commands on your system, potentially leading to unauthorized access, data theft, or system compromise. The exploit is publicly available, increasing the risk of attacks. Upgrading to version 0.31.1 fixes the issue.

Compliance Impact

This vulnerability could lead to unauthorized data access or exfiltration, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Compliance may be compromised if sensitive data is exposed or altered due to the command injection.

Mitigation Strategies

Upgrade Moonshot AI Kimi Code to version 0.31.1 or later to fix the OS command injection vulnerability in the MCP Configuration Loader component.

  • Check installed version with npm list @moonshot-ai/kimi-code or similar package manager command.
  • Update the package using npm update @moonshot-ai/kimi-code or your package manager's equivalent.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-95660. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart