[Kimi VS Code] Command Injection in publish scripts vsix-publish.js and ovsx-publish.js
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-77.
Summary
Kimi Agent SDK is a set of libraries that expose the Kimi Code (Kimi CLI) agent runtime in applications. The vsix-publish.js and ovsx-publish.js scripts pass filenames to execSync() as shell command strings. Prior to version 0.1.6, filenames containing shell metacharacters like $(cmd) could execute arbitrary commands. Note: This vulnerability exists only in the repository's development scripts. The published VSCode extension does not include these files and end users are not affected. This is fixed in version 0.1.6 by replacing execSync with execFileSync using array arguments. As a workaround, ensure .vsix files in the project directory have safe filenames before running publish scripts.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MoonshotAI | kimi-agent-sdk | before 0.1.6 | 0.1.6 | Patch available | CNA |
- kimi-agent-sdk VendorMoonshotAI Affected before 0.1.6 Fixed in 0.1.6 Patch available CNA
Remediation
- Fix · CNA kimi-agent-sdk (MoonshotAI) Fixed in 0.1.6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25046
References
More MoonshotAI vulnerabilities
- TI-2026-63668 Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection CVSS 4.0MEDIUM 5.3
- TI-2026-14384 Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects CVSS 3.1MEDIUM 5.5
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences