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

> CVE-2026-25046: [Kimi VS Code] Command Injection in publish scripts vsix-publish.js and ovsx-publish.js. CVSS 2.9 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-25046
Last updated: 2026-06-17T10:24:02Z

- Published: 2026-01-29 21:37 UTC · Updated: 2026-06-17 10:24 UTC · Assigner: GitHub\_M
- CVSS: 2.9 (CVSS 3.1) · Severity: Low · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N
- EPSS: 0.14%, 3th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-77

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

## Affected vendors and products

- MoonshotAI: kimi-agent-sdk

## Tracked companies

- [Moonshot AI (Kimi)](https://rewindex.com/company/moonshot-ai.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-25046)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-25046)
- [https://github.com/MoonshotAI/kimi-agent-sdk/security/advisories/GHSA-mv58-gxx5-8hj3](https://github.com/MoonshotAI/kimi-agent-sdk/security/advisories/GHSA-mv58-gxx5-8hj3)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-25046 · Markdown: https://rewindex.com/cve/CVE-2026-25046.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-25046 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:09.949Z
