← All advisories
CVE-2026-83816highAgent hijacking2026-11-16

CodeWhale (DeepSeek-TUI) before 0.9.0: fd/rg/git grep exec flags run programs without the approval prompt, and automations default to auto-approve (CVE-2026-83816, CVE-2026-83817)

Two approval bypasses in the CodeWhale terminal coding agent (npm codewhale, crate codewhale-tui; formerly DeepSeek-TUI), versions 0.8.67 and earlier. In the default interactive profile, shell commands starting with fd, rg or git grep were auto-approved as read-only even when flags like fd -x, rg --pre or git grep --open-files-in-pager ran an external program, so prompt-injected content could execute programs with no prompt. Separately, automations defaulted to auto_approve=true, so one approved recurring automation ran every later tool call unattended. Fixed in 0.9.0.

01.

What it is

CVE-2026-83816 / GHSA-3mgh-93r5-r7jf: ExecShellTool::approval_requirement_for downgraded any command the is_parallel_readonly_command classifier accepted to automatic approval. The classifier stripped flags and matched the base command against an allow-list containing fd, rg and git grep, which can launch arbitrary programs through documented flags without shell metacharacters. The later command-safety check also rated them safe.

CVE-2026-83817 / GHSA-8hp3-xxrg-v9c8: AutomationRecord::task_auto_approve resolved an omitted auto_approve to true (DEFAULT_AUTOMATION_AUTO_APPROVE) and the automation_create tool schema advertised default true. enqueue_run_task turned that into an explicit true, bypassing the earlier task-path hardening (CVE-2026-45374) and selecting ApprovalMode::Bypass for every scheduled run. With allow_shell this means recurring command execution with no human present.

Both advisories list codewhale-tui (crates.io) and codewhale (npm) <= 0.8.67 as affected and 0.9.0 as patched (commit 208421b). GitHub published them on 12 November 2026; NVD on 16 November.

02.

How to check

  1. Run `codewhale --version` (or `npm ls -g codewhale deepseek-tui`) and compare with 0.9.0.
  2. List your scheduled automations and check which have auto-approve or shell access enabled.
03.

How to fix

  1. Upgrade CodeWhale to 0.9.0 or later. The legacy deepseek-tui npm package is a rename stub; install codewhale instead.
  2. Delete automations you didn't intend to run unattended, and recreate the ones you keep with auto_approve explicitly false.
  3. Treat fd -x/--exec, rg --pre and git grep --open-files-in-pager as command execution in any agent allow-list you maintain.
codewhale --version 2>/dev/null
npm ls -g codewhale deepseek-tui 2>/dev/null
04.

Sources

Related on VibeVulns
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.