CVE-2026-138205

Kode-CLI can ignore a damaged project permission policy

shareAI-lab · Kode-CLI

First documented disclosure · Review checkpoint

Summary

An unreadable project policy can remove configured deny or approval rules while permissive modes continue.

Severity and exploitation evidence

Medium · 4.8/10 · CVSS 4.0. Severity source.

Exploitation not established: Public researcher or maintainer evidence establishes the reported behavior, not malicious exploitation or identified victims. No payload, package, model or proof of concept was executed during this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

The affected loader treats malformed or unreadable policy as absent, discarding allow, deny and ask entries. acceptEdits or interactive permissive mode can then autoapprove otherwise denied writes.

Conditions required

A project policy file is damaged or unreadable before the relevant entry point loads it, an applicable permissive mode is selected, and an agent requests a write. Built-in blocked paths and operating-system permissions still apply.

Potential impact

Agent writes can bypass the project’s intended permission policy within reachable paths. The original distinguishes JSON/stream-JSON print paths from plain print; this is not every invocation mode.

Affected versions and configurations

CNA lists 2.2.0 and 2.2.1; the original report tested 2.2.0.

Fix and mitigation status

PR 254 was merged November 2 as commit 2b8a532ce9a7d4ca287306eceed446373fb79002. It distinguishes missing settings from read/validation failure and checks multiple entry points. The repository release API has no release entries; no corrected packaged version was verified.

Practical next steps

Apply the source correction or refuse to run when a configured project policy cannot be loaded. Validate policy at every CLI, MCP, ACP and web entry point.

Operating lesson

A missing optional policy and a broken existing policy require different handling.

Evidence and limits

Both report and merged correction were public November 2. Source availability is not a verified package-version boundary. Issuing CNA publication was 2026-11-29; this is distinct from the earlier original disclosure and any later index ingestion. Severity is VulDB CNA CVSS 4.0 Medium 4.8. CNA also supplies CVSS 3.1 Medium 5.3.

Sources