CVE-2026-95660: Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection

Published Sep 22, 2026
·
Updated

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.

Affected Software

1 affected component
Moonshot AI Kimi Code<=0.31.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Moonshot AI Kimi Code to a version that resolves this vulnerability.

    Fixed in 0.31.1

Event History

Sep 22, 2026
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Moonshot AI Kimi Code versions up to 0.31.0 are affected. The vulnerable functionality is the MCP Configuration Loader in agent-core-v2/src/agent/mcp/config-loader.ts.

2

What must an attacker provide or control to exploit it?

Exploitation involves an untrusted .mcp.json configuration that can trigger automatic process spawning. The issue can be launched remotely and requires user interaction, as reflected by the UI:R vector.

3

Are untrusted workspaces relevant to exploitation?

Yes. The advisory specifically notes that untrusted workspaces could plant bare-name fd or stty executables before confirmation through a $PATH path-planting vector, in addition to the untrusted-.mcp.json auto-spawn issue.

4

What is the recommended remediation?

Upgrade Moonshot AI Kimi Code to version 0.31.1. The fix addresses the primary untrusted-.mcp.json auto-spawn behavior and resolves fd and stty to absolute paths to prevent the noted path-planting vector.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203