# CVE-2026-126758: Moonshot AI Kimi Code reliance on untrusted input in WorkspaceDirsService

Source: https://junglewise.ai/threats/cve-2026-126758-a-vulnerability-was-detected-in-moonshot-ai-kimi-code-up-to-2-0  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-11. Updated: 2026-11-12  
License: CC BY 4.0 with a link back

CVE-2026-126758 · Severity: medium · CVSS 4.4 · Published 2026-11-11

Moonshot AI Kimi Code, a developer assistant tool, contains a vulnerability in its workspace directory configuration that allows a local user to manipulate directory settings through an untrusted configuration file. An attacker with local access could modify the additional_dir argument to cause the application to trust malicious input when making security decisions, potentially leading to unauthorized access to files or code execution within the workspace context.

Technologies: [Moonshot AI Kimi Code](https://junglewise.ai/threats/technologies/kimi-code). Vendors: [Moonshot AI](https://junglewise.ai/threats/vendors/moonshot-ai).

## Quick answers

**Is CVE-2026-126758 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-126758 being exploited in the wild.

**How severe is CVE-2026-126758?** Medium severity, with a CVSS score of 4.4, published 11 November 2026.

**Which products and versions are affected?** Moonshot AI Kimi Code up to 2.0.2.

**Is there a fix for CVE-2026-126758?** Yes: fixed in 2.1.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-126758 attacked?** It is attacked with local access.

**Am I affected by CVE-2026-126758?** Check whether you run Moonshot AI Kimi Code at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 2.1.0

## Technical details

The vulnerability is a reliance on untrusted input in a security decision, affecting the WorkspaceDirsService component in the .kimi-code/local.toml configuration file. An attacker with local access can manipulate the additional_dir argument to influence how the application handles workspace directories. The fix in version 2.1.0 includes rejection of additional directories that resolve to the home directory or filesystem root, blocking symlink-based attacks to escape the working directory.

## Affected products

- Moonshot AI Kimi Code up to 2.0.2

## Timeline

- 2026-11-11: disclosed
- 2026-09-23: patched: Version 2.1.0 released with fixes including blocking symlink escapes and rejecting home/root directory paths

## References

- [https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%402.1.0](https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%402.1.0)
- [https://mcniyfj5bw9b.feishu.cn/docx/LsJldjpjXomkb4xTJ6CcWzdFnvd](https://mcniyfj5bw9b.feishu.cn/docx/LsJldjpjXomkb4xTJ6CcWzdFnvd)

## Related threats

- [Moonshot AI Kimi Code open redirect in Web UI](https://junglewise.ai/threats/cve-2026-126757-a-security-vulnerability-has-been-detected-in-moonshot-ai-kimi)
- [Moonshot AI Kimi Code arbitrary command injection in MCP configuration loader](https://junglewise.ai/threats/cve-2026-95660-a-security-flaw-has-been-discovered-in-moonshot-ai-kimi-code-up)
- [MoonshotAI Kimi Code SSRF bypass in FetchURL tool](https://junglewise.ai/threats/cve-2026-17534-moonshotai-kimi-code-ssrf-bypass-in-fetchurl-tool)
