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.
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.
How to check
- Run `codewhale --version` (or `npm ls -g codewhale deepseek-tui`) and compare with 0.9.0.
- List your scheduled automations and check which have auto-approve or shell access enabled.
How to fix
- Upgrade CodeWhale to 0.9.0 or later. The legacy deepseek-tui npm package is a rename stub; install codewhale instead.
- Delete automations you didn't intend to run unattended, and recreate the ones you keep with auto_approve explicitly false.
- 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