---
id: CVE-2026-95660
title: A security flaw has been discovered in Moonshot AI Kimi Code up to 0.31.0
summary: >-
  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 r…
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'
cwe:
  - CWE-77
  - CWE-78
vendor: Moonshot AI
product: Kimi Code
affected:
  - kimi_code 0.1
  - kimi_code 0.2
  - kimi_code 0.3
  - kimi_code 0.4
  - kimi_code 0.5
  - kimi_code 0.6
  - kimi_code 0.7
  - kimi_code 0.8
  - kimi_code 0.9
  - kimi_code 0.10
  - kimi_code 0.11
  - kimi_code 0.12
  - kimi_code 0.13
  - kimi_code 0.14
  - kimi_code 0.15
  - kimi_code 0.16
  - kimi_code 0.17
  - kimi_code 0.18
  - kimi_code 0.19
  - kimi_code 0.20
  - kimi_code 0.21
  - kimi_code 0.22
  - kimi_code 0.23
  - kimi_code 0.24
  - kimi_code 0.25
  - kimi_code 0.26
  - kimi_code 0.27
  - kimi_code 0.28
  - kimi_code 0.29
  - kimi_code 0.30
  - kimi_code 0.31.0
published: '2026-09-22'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T19:16:59.953'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-95660'
references:
  - url: >-
      https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?usp=sharing
    label: cna@vuldb.com
  - url: >-
      https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%400.31.1
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-95660'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/897071'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/408415'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/408415/cti'
    label: cna@vuldb.com
  - url: >-
      https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?tab=t.0
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-22T19:05:02.865882Z'
ingestedAt: '2026-09-22T19:09:09.989Z'
epss: 0.01665
epssPercentile: 0.75707
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
