{"id":"CVE-2026-139889","summary":"Moonshot AI Kimi Code Tool Policy toolPolicyService.ts AgentToolPolicyService improper authorization","details":"A vulnerability was identified in Moonshot AI Kimi Code up to 2.5.2. Affected is the function AgentToolPolicyService of the file packages/agent-core-v2/src/agent/toolPolicy/toolPolicyService.ts of the component Tool Policy. Such manipulation leads to improper authorization. Local access is required to approach this attack. The exploit is publicly available and might be used.","modified":"2026-12-01T21:02:41.625880459Z","published":"2026-11-30T23:45:22.939Z","database_specific":{"cna_assigner":"VulDB","cwe_ids":["CWE-266","CWE-285"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139889.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139889.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139889"},{"type":"ADVISORY","url":"https://vuldb.com/cve/CVE-2026-139889"},{"type":"ADVISORY","url":"https://vuldb.com/submit/1082489"},{"type":"ADVISORY","url":"https://vuldb.com/vuln/445863"},{"type":"REPORT","url":"https://vuldb.com/vuln/445863/cti"},{"type":"FIX","url":"https://github.com/MoonshotAI/kimi-code/pull/4761"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/moonshotai/kimi-code","events":[{"introduced":"41c341434ae24e45bfe0f2232ec11b80531ac717"},{"last_affected":"1c142a007c10e881602690def96057c23a2baa12"}],"database_specific":{"extracted_events":[{"strategy":"StandaloneSingleVersion","range":[{"introduced":"2.5.0"},{"last_affected":"2.5.0"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"2.5.1"},{"last_affected":"2.5.1"}],"source":"AFFECTED_FIELD","strategy":"StandaloneSingleVersion"},{"strategy":"StandaloneSingleVersion","range":[{"introduced":"2.5.2"},{"last_affected":"2.5.2"}],"source":"AFFECTED_FIELD"},{"source":"DESCRIPTION","range":[{"introduced":"0"},{"last_affected":"2.5.2"}]}]}}],"versions":["2.5.0","2.5.1","2.5.2","@moonshot-ai/kimi-code@2.5.2","@moonshot-ai/kimi-code@2.5.1","@moonshot-ai/kimi-code@2.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139889.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}