Skip to content
Heist/ feed
Back to feed
Low

Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-95660
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:39 UTC · Revision 1

Source evidence

Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection

core-osv · Original source

Published 22 Sept 2026, 18:00 UTC

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.

osv:CVE-2026-95660
Complete source record
{
  "id": "5b760ba77b285ecab285a1cc0d30cc7e435cb8e2777841594413250a923740d0",
  "url": "https://osv.dev/vulnerability/CVE-2026-95660",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection",
    "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 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.",
    "evidence": "osv:CVE-2026-95660",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-95660",
      "aliases": [
        "CVE-2026-95660"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/moonshotai/kimi-code",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d496fd40b649ddec1226b8f44cf1556c51178aff"
                },
                {
                  "last_affected": "bc28e9d802fbec29395a7aed85e880679a050145"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0.2"
                      },
                      {
                        "last_affected": "0.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.3"
                      },
                      {
                        "last_affected": "0.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.4"
                      },
                      {
                        "last_affected": "0.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.5"
                      },
                      {
                        "last_affected": "0.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.6"
                      },
                      {
                        "last_affected": "0.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.7"
                      },
                      {
                        "last_affected": "0.7"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.8"
                      },
                      {
                        "last_affected": "0.8"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.9"
                      },
                      {
                        "last_affected": "0.9"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.10"
                      },
                      {
                        "last_affected": "0.10"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.11"
                      },
                      {
                        "last_affected": "0.11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.12"
                      },
                      {
                        "last_affected": "0.12"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.13"
                      },
                      {
                        "last_affected": "0.13"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.14"
                      },
                      {
                        "last_affected": "0.14"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.15"
                      },
                      {
                        "last_affected": "0.15"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.16"
                      },
                      {
                        "last_affected": "0.16"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.17"
                      },
                      {
                        "last_affected": "0.17"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.18"
                      },
                      {
                        "last_affected": "0.18"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.19"
                      },
                      {
                        "last_affected": "0.19"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.20"
                      },
                      {
                        "last_affected": "0.20"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.21"
                      },
                      {
                        "last_affected": "0.21"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.22"
                      },
                      {
                        "last_affected": "0.22"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.23"
                      },
                      {
                        "last_affected": "0.23"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.24"
                      },
                      {
                        "last_affected": "0.24"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.25"
                      },
                      {
                        "last_affected": "0.25"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.26"
                      },
                      {
                        "last_affected": "0.26"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.27"
                      },
                      {
                        "last_affected": "0.27"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.28"
                      },
                      {
                        "last_affected": "0.28"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.29"
                      },
                      {
                        "last_affected": "0.29"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.30"
                      },
                      {
                        "last_affected": "0.30"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0.31.0"
                      },
                      {
                        "last_affected": "0.31.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.31.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.10",
            "0.11",
            "0.12",
            "0.13",
            "0.14",
            "0.15",
            "0.16",
            "0.17",
            "0.18",
            "0.19",
            "0.2",
            "0.20",
            "0.21",
            "0.22",
            "0.23",
            "0.24",
            "0.25",
            "0.26",
            "0.27",
            "0.28",
            "0.29",
            "0.3",
            "0.30",
            "0.31.0",
            "0.4",
            "0.5",
            "0.6",
            "0.7",
            "0.8",
            "0.9",
            "@moonshot-ai/kimi-code@0.31.0",
            "@moonshot-ai/kimi-code@0.30.0",
            "@moonshot-ai/kimi-code@0.29.2",
            "@moonshot-ai/kimi-code@0.29.1",
            "@moonshot-ai/kimi-code@0.29.0",
            "@moonshot-ai/kimi-code@0.28.1",
            "@moonshot-ai/kimi-code@0.28.0",
            "@moonshot-ai/kimi-code@0.27.0",
            "@moonshot-ai/kimi-code@0.26.0",
            "@moonshot-ai/kimi-code@0.25.0",
            "@moonshot-ai/kimi-code@0.24.2",
            "@moonshot-ai/kimi-code@0.24.1",
            "@moonshot-ai/kimi-code@0.24.0",
            "@moonshot-ai/kimi-code@0.23.6",
            "@moonshot-ai/kimi-code@0.23.5",
            "@moonshot-ai/kimi-code@0.23.4",
            "@moonshot-ai/kimi-code@0.23.3",
            "@moonshot-ai/kimi-code@0.23.2",
            "@moonshot-ai/kimi-code@0.23.1",
            "@moonshot-ai/kimi-code@0.23.0",
            "@moonshot-ai/kimi-code@0.22.3",
            "@moonshot-ai/kimi-code@0.22.2",
            "@moonshot-ai/kimi-code@0.22.1",
            "@moonshot-ai/kimi-code@0.22.0",
            "@moonshot-ai/kimi-code@0.21.1",
            "@moonshot-ai/kimi-code@0.21.0",
            "@moonshot-ai/kimi-code@0.20.3",
            "@moonshot-ai/kimi-code@0.20.2",
            "@moonshot-ai/kimi-code@0.20.1",
            "@moonshot-ai/kimi-code@0.20.0",
            "@moonshot-ai/kimi-code@0.19.2",
            "@moonshot-ai/kimi-code@0.19.1",
            "@moonshot-ai/kimi-code@0.19.0",
            "@moonshot-ai/kimi-code@0.18.0",
            "@moonshot-ai/kimi-code@0.17.1",
            "@moonshot-ai/kimi-code@0.17.0",
            "@moonshot-ai/kimi-code@0.16.0",
            "@moonshot-ai/kimi-code@0.15.0",
            "@moonshot-ai/kimi-code@0.14.3",
            "@moonshot-ai/kimi-code@0.14.2",
            "@moonshot-ai/kimi-code@0.14.1",
            "@moonshot-ai/kimi-code@0.14.0",
            "@moonshot-ai/kimi-code@0.13.1",
            "@moonshot-ai/kimi-code@0.13.0",
            "@moonshot-ai/kimi-code@0.12.1",
            "@moonshot-ai/kimi-code@0.12.0",
            "@moonshot-ai/kimi-code@0.11.0",
            "@moonshot-ai/kimi-code@0.10.1",
            "@moonshot-ai/kimi-code@0.10.0",
            "@moonshot-ai/kimi-code@0.9.0",
            "@moonshot-ai/kimi-code@0.8.0",
            "@moonshot-ai/kimi-code@0.7.0",
            "@moonshot-ai/kimi-code@0.6.0",
            "@moonshot-ai/kimi-code@0.5.0",
            "@moonshot-ai/kimi-code@0.4.0",
            "@moonshot-ai/kimi-code@0.3.0",
            "@moonshot-ai/kimi-code@0.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-95660.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.258690997Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/95xxx/CVE-2026-95660.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-95660",
        "https://vuldb.com/cve/CVE-2026-95660",
        "https://vuldb.com/submit/897071",
        "https://vuldb.com/vuln/408415",
        "https://vuldb.com/vuln/408415/cti",
        "https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%400.31.1",
        "https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?tab=t.0",
        "https://docs.google.com/document/d/1GPDw0UzUkgfXRkWEDqCIanKDq3Tpvllyf08O-0eLyoQ/edit?usp=sharing"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-77",
          "CWE-78"
        ],
        "cna_assigner": "VulDB",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.1"
                  },
                  {
                    "last_affected": "0.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/95xxx/CVE-2026-95660.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-95660",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487255,
  "published_at": "2026-09-22T18:00:11.243+00:00"
}