Read the docs

Moonshot AI Kimi Code Tool Policy Improper Authorization

Priority LOW 37CWE-266Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Privilege escalation, Security bypass
Confidentiality · integrity · availability
Low · Low · Low
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-266 and CWE-285.

Summary

Moonshot AI Kimi Code up to 2.5.2 contains an improper authorization flaw (CWE-285, Improper Authorization; also CWE-266, Incorrect Privilege Assignment) in the AgentToolPolicyService function of packages/agent-core-v2/src/agent/toolPolicy/toolPolicyService.ts, in the Tool Policy component. An attacker with local access can manipulate the policy logic to bypass authorization checks. A public exploit exists, and CISA has not added the vulnerability to KEV. CVSS 4.0 base score is 4.8 (MEDIUM).

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Description from the CNA

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.

Why it matters now

Public exploit Yes 1 exploit referenceTagged by the CNA
Fix No fix listed No fixed version in the sources yet

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Moonshot AIKimi Code2.5.0; 2.5.1; 2.5.2—No fix listedCNA
  • Kimi Code VendorMoonshot AI Affected 2.5.0; 2.5.1; 2.5.2 Fixed in — No fix listed CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:moonshot_ai:kimi_code:*:*:*:*:*:*:*:*——Moonshot AI
  • cpe:2.3:a:moonshot_ai:kimi_code:*:*:*:*:*:*:*:* Versions — — ·Moonshot AI

Remediation

No fix is listed for Kimi Code versions 2.5.0, 2.5.1 or 2.5.2 at the time of publication. Restrict local access to affected systems and review tool policy settings until a patched release is available.

Written with Claude Haiku 5.5 from the sources below · 2026-12-01

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-139889
  2. 2026-12-01 Alias added: GHSA-pqcj-r55w-7h88

References

  • TI-2026-63668 Moonshot AI Kimi Code MCP Configuration Loader config-loader.ts os command injection CVSS 4.0MEDIUM 5.3
  • TI-2026-96441 Improper authorization in Moonshot AI Kimi Code plan mode permission guard CVSS 4.0MEDIUM 4.8
  • TI-2026-90180 Moonshot AI Kimi Code relies on untrusted input in a security decision CVSS 4.0MEDIUM 4.8
  • TI-2026-90175 Open redirect in Moonshot AI Kimi Code Web UI CVSS 4.0MEDIUM 5.3
  • TI-2026-14384 Kimi Code FetchURL SSRF protection bypass via DNS-resolving hostnames and redirects CVSS 3.1MEDIUM 5.5
  • TI-2026-20230 [Kimi VS Code] Command Injection in publish scripts vsix-publish.js and ovsx-publish.js CVSS 3.1LOW 2.9

Sources