Moonshot AI Kimi Code through version 2.7.2 contains an authorization weakness in Plan Mode, tracked as CVE-2026-134006. A public report says the guardToolExecution function in the plan service can be manipulated to bypass the permission check. The attack requires local access, and the exploit is described as publicly available. The vendor did not respond to the report according to the advisory.

Agent products often present modes as user controls. Plan Mode suggests that the agent will inspect, reason, and propose actions without performing them. That promise is only real if the execution layer receives a scoped capability, not just a mode label. If a tool can be selected or invoked through another path, the browser state and the model's instruction do not enforce the boundary.

Local access narrows the immediate threat. The person or process already on the workstation may be able to inspect files and alter settings. The user still expects a permission guard to stop the agent from moving from a plan to an action. A coding agent may have shell, repository, package, and credential access. That makes the guard part of the endpoint security model.

No fixed version is documented in the reviewed sources. Treat the boundary as unresolved and reduce exposure. Run the agent under a dedicated local account, with repository access limited to the task, and without ambient cloud or package-publishing credentials. Use a separate environment for sensitive repositories.

Review tool permissions at invocation time. The runtime should bind the approved mode, the tool, the target resource, and the action into one decision. A plan to edit one file should not authorize an unrelated shell command. A denied action should produce a clear record even when the model presents it as part of the plan.

Monitor local process creation, repository writes, package manager activity, and outbound requests from the agent process. Correlate those events with the session ID and the user request. The absence of a visible confirmation dialog is not evidence that the action was authorized.

For team deployments, publish a supported-version policy only after the vendor documents a fix. Until then, disable Plan Mode for repositories with high-value credentials or production access, or isolate the agent in a disposable workspace. Inspect project settings and extension directories for changes made outside normal updates.

Test the guard with a harmless staging repository. Ask the agent for a plan that would touch a test file, then attempt to invoke the tool through another local path. Record whether execution occurs, whether the user sees a confirmation, and which component made the decision. That evidence is more useful than a UI screenshot that shows Plan Mode selected.

The advisory is unreviewed and the vendor response is incomplete. State that uncertainty in risk decisions. The architectural lesson is still clear: a permission guard must sit in the execution path and fail closed when the mode or target is ambiguous.

References