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

Medium 5.3 Published Updated

Remote attackers can execute arbitrary OS commands via untrusted MCP configuration files in Kimi Code, requiring an upgrade to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-95660?

CVE-2026-95660 is a medium-severity command injection vulnerability in Moonshot AI Kimi Code, published on 22 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2026-95660?

How do I fix CVE-2026-95660?

No fix has been published for CVE-2026-95660 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-95660 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-95660 exists.

Sources

Also known as GHSA-jp7p-97jq-v89h.

Is CVE-2026-95660 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free