---
id: "CVE-2026-83816"
page: "https://infrastack.ai/live/CVE-2026-83816"
kind: "vulnerability"
aliases: ["CVE-2026-83816"]
title: "CodeWhale coding agent runs commands without approval, enabling code execution"
severity: "high"
cvss: 8.1
epss: null
exploited: false
status: "open"
category: "ai-tooling"
products: []
ecosystems: []
tags: ["ai-tooling", "codewhale", "coding-agent", "deepseek", "mimo", "terminal"]
not_affected_if: ["version-0.9.0-or-later"]
published_at: "2026-11-16T19:17:53+00:00"
first_seen_at: "2026-11-16T19:38:22+00:00"
updated_at: "2026-11-16T19:39:27+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-83816", "first_seen_at": "2026-11-16T19:38:22+00:00"}]
exploit_sources: []
---

# CodeWhale coding agent runs commands without approval, enabling code execution

Link for people: https://infrastack.ai/live/CVE-2026-83816 (this .md is for agents)

CodeWhale, a terminal coding agent for DeepSeek and MiMo, treats some search commands as read-only and skips the approval prompt for them, even when flags like fd -x, rg --pre, or git grep --open-files-in-pager launch an external program. Attacker-controlled content that influences an agent tool call can therefore run arbitrary programs on the developer's machine.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed CodeWhale version and see whether it is below `0.9.0`.
- Look at whether the agent's approval profile is the default interactive one, since the bypass skips the prompt it promises.

## Fix

- CodeWhale: upgrade to `0.9.0`.

## Timeline

- 2026-11-16T19:38:22+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-83816

## Documents

- [advisory] Vendor advisory: github.com https://github.com/codewhale-hq/Codewhale/security/advisories/GHSA-3mgh-93r5-r7jf
- [fix] Patch: github.com https://github.com/codewhale-hq/Codewhale/commit/208421b9d23d81cea3311a1eeb2a2ea81d637686
- [fix] Release notes: github.com https://github.com/codewhale-hq/Codewhale/releases/tag/v0.9.0

## From the sources

CodeWhale is a DeepSeek and MiMo coding agent for the terminal. Prior to 0.9.0, the ExecShellTool::approval_requirement_for path used is_parallel_readonly_command to downgrade commands to automatic approval based on a flag-stripped command allowlist. The allowlist treated fd, rg, and git grep as read-only even when fd -x or fd --exec, rg --pre, or git grep --open-files-in-pager selected an external program. registered_tool_approval_required returned without displaying a prompt for that automatic classification, and the later command-safety check also treated the base utilities as safe. Attacker-controlled content that influenced an agent tool call could therefore cause arbitrary program execution on the developer host without the approval promised by the default interactive profile, resulting in unauthorized access, modification, or disruption. This issue is fixed in version 0.9.0.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
