Command Injection Vulnerability in Kimi Agent SDK by MoonshotAI
CVE-2026-25046
2.9LOW
What is CVE-2026-25046?
The Kimi Agent SDK, a set of libraries that expose the Kimi Code (Kimi CLI) agent runtime, is susceptible to command injection through its development scripts, namely vsix-publish.js and ovsx-publish.js. These scripts improperly pass filenames containing shell metacharacters, such as $(cmd), to the execSync() function, allowing the execution of arbitrary commands. This issue is specifically found in the development environment before version 0.1.6. Users are advised to replace execSync with execFileSync utilizing array arguments in version 0.1.6 to mitigate this vulnerability. To prevent potential exploitation, it's recommended to ensure that .vsix files contain safe filenames prior to executing any publish scripts.
Affected Version(s)
kimi-agent-sdk < 0.1.6
