Skip to content

An editorial team and a community building with AI

← All articles

News · Moonshot AI · 2 min read

Event date: · Published:

GitHub discloses permission bypass flaw in Moonshot AI's Kimi Code

GitHub's security advisory describes a permission-assignment flaw in Kimi Code's Plan Mode Permission Guard, tracked as CVE-2026-134006, with no patch yet available.

GitHub Security Advisories disclosed on November 21, 2026 that Moonshot AI's Kimi Code coding agent contains a permission-assignment flaw in its Plan Mode Permission Guard, the safety gate meant to stop the AI coding agent from executing unapproved tool calls, tracked as CVE-2026-134006, according to GitHub's security advisory GHSA-259v-2548-2q54.

Details of the vulnerability

  • Advisory GHSA-259v-2548-2q54, tracked as CVE-2026-134006, classified as CWE-266 (Incorrect Privilege Assignment)
  • GitHub's GHSA scoring rates the severity Low, with a CVSS v4 score around 1.9, while third-party scanners list it around CVSS 4.8 to 5.3, or Medium
  • The flaw sits in the guardToolExecution function inside packages/agent-core-v2/src/features/plan/planService.ts, which implements the Plan Mode Permission Guard
  • Affects Kimi Code versions up to and including 2.7.2, with no patched version listed in the advisory as of publication
  • Exploitation requires local access to the machine running Kimi Code, and public exploit code is reportedly already available
  • Moonshot AI reportedly received early disclosure of the flaw but had not responded as of publication

What it means for builders using AI coding agents

Kimi Code is Moonshot AI's AI coding-agent tool, built on the Kimi K3 model line and comparable to Claude Code or Cursor-style coding assistants. Its Plan Mode Permission Guard exists to stop the agent from running tool calls a developer has not approved. A bypass of that guard undercuts the exact safety mechanism developers rely on when giving these agents write access to their machines, so anyone running Kimi Code locally is trusting a gate that can reportedly be sidestepped by someone with local access to the same machine.

Patch status and what to do now

As of publication, GitHub's advisory lists no patched version of Kimi Code, and Moonshot AI had not responded despite reportedly receiving an early disclosure. Because public exploit code is already circulating and exploitation requires only local access, teams running Kimi Code 2.7.2 or earlier should treat the Plan Mode Permission Guard as unreliable until a fix ships and should limit who has local access to machines running the agent.


Sources

Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.

GitHub discloses permission bypass flaw in Moonshot AI's Kimi Code | vibecoding.inc