# CVE-2026-126758: Moonshot AI Kimi Code WorkspaceDirsService local.toml reliance on untrusted inputs in a security decision

Status: published. Published: 2026-11-11. Updated: 2026-11-11.

A vulnerability was detected in Moonshot AI Kimi Code up to 2.0.2. This vulnerability affects unknown code of the file .kimi-code/local.toml of the component WorkspaceDirsService. Performing a manipulation of the argument additional_dir results in reliance on untrusted inputs in a security decision. The attack requires a local approach. The exploit is now public and may be used. Upgrading to version 2.1.0 is able to resolve this issue. Upgrading the affected component is recommended.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: VulDB) — https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%402.1.0

## Affected products and versions

- Moonshot AI / Kimi Code: 2.0.0 (affected); 2.0.1 (affected); 2.0.2 (affected); 2.1.0 (unaffected). Source: CNA: VulDB

## Severity and prioritization

- CVSS 4.0: 4.8 (medium); CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P; source: CNA: VulDB

- CVSS 3.1: 4.4 (medium); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:O/RC:C; source: CNA: VulDB

- CVSS 3.0: 4.4 (medium); CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L/E:P/RL:O/RC:C; source: CNA: VulDB

- CVSS 2.0: 3.2 (low); AV:L/AC:L/Au:S/C:N/I:P/A:P/E:POC/RL:OF/RC:C; source: CNA: VulDB

- CVSS 4.0: 1.9 (low); CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: cna@vuldb.com

- CVSS 3.1: 4.4 (medium); CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L; source: NVD: cna@vuldb.com

- CVSS 2.0: 3.2 (low); AV:L/AC:L/Au:S/C:N/I:P/A:P; source: NVD: cna@vuldb.com

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-807, CWE-20

## Exploit evidence

- exploit: https://mcniyfj5bw9b.feishu.cn/docx/LsJldjpjXomkb4xTJ6CcWzdFnvd (CNA: VulDB)

## References

- https://vuldb.com/vuln/435868 (CNA: VulDB; vdb-entry, technical-description)

- https://vuldb.com/vuln/435868/cti (CNA: VulDB; signature, permissions-required)

- https://vuldb.com/cve/CVE-2026-126758 (CNA: VulDB; third-party-advisory)

- https://vuldb.com/submit/1033260 (CNA: VulDB; third-party-advisory)

- https://mcniyfj5bw9b.feishu.cn/docx/LsJldjpjXomkb4xTJ6CcWzdFnvd (CNA: VulDB; exploit)

- https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%402.1.0 (CNA: VulDB; patch)

- https://github.com/MoonshotAI/kimi-code/releases/tag/%40moonshot-ai%2Fkimi-code%402.1.0 (cna@vuldb.com)

- https://mcniyfj5bw9b.feishu.cn/docx/LsJldjpjXomkb4xTJ6CcWzdFnvd (cna@vuldb.com)

- https://vuldb.com/cve/CVE-2026-126758 (cna@vuldb.com)

- https://vuldb.com/submit/1033260 (cna@vuldb.com)

- https://vuldb.com/vuln/435868 (cna@vuldb.com)

- https://vuldb.com/vuln/435868/cti (cna@vuldb.com)

## Provenance

- CNA: VulDB: https://www.cve.org/CVERecord?id=CVE-2026-126758; retrieved 2026-11-11; source updated 2026-11-11

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-126758; retrieved 2026-11-12; source updated 2026-11-11

Revision: 93ee6a8551ef7531e3686e84c6818f49677517d962405af13c130245730d160d

Canonical: https://y2.dev/cve/CVE-2026-126758

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.