News · GitHub Security Advisories / CodeWhale · 2 min read
Event date: · Published:
Two CodeWhale auto-approve flaws enabled unattended remote code execution
GitHub Security Advisories disclosed two CodeWhale vulnerabilities on November 19, 2026, showing how prompt injection could trigger silent remote code execution through auto-approved shell commands and automation defaults.
GitHub Security Advisories disclosed two vulnerabilities in the CodeWhale AI coding agent CLI/TUI tool on November 19, 2026, detailed in the GHSA-3mgh-93r5-r7jf advisory. Together, the two flaws let prompt injection trigger arbitrary command execution without any approval prompt, enabling silent, unattended remote code execution on machines running the agent.
The two flaws
GHSA-3mgh-93r5-r7jf(CVE-2026-83816) has a CVSS score of 8.1 (High)GHSA-8hp3-xxrg-v9c8(CVE-2026-83817) has a CVSS score of 7.5 (High)- Both affect the
codewhalenpm package and thecodewhale-tuiRust crate in versions up to 0.8.67, fixed in version 0.9.0 CVE-2026-83816: commands such asfd -x,rg --pre, andgit grep --open-files-in-pagerare misclassified as parallel-readonly and auto-approved, letting prompt injection trigger silent arbitrary command executionCVE-2026-83817: an omittedauto_approvesetting resolves totrueinstead offalse, re-enabling unattended remote code execution on scheduled automation runsCVE-2026-83817is noted as bypassing an earlier fix tracked asCVE-2026-45374
What it means for people who build with AI
The flaws show how permission-classification bugs in an AI coding agent can turn routine automation into unattended remote code execution, a recurring risk pattern for anyone running autonomous coding agents with shell access. A builder who lets CodeWhale auto-approve commands it labels read-only, or who schedules it for unattended automation runs, could have arbitrary commands executed on their system through nothing more than a crafted prompt, with no approval step ever shown.
Fix availability
Both issues are fixed in CodeWhale version 0.9.0. The advisories were published to the GitHub Advisory Database on November 19, 2026, with the automation default covered separately in the GHSA-8hp3-xxrg-v9c8 advisory.
Sources
- CodeWhale exec_shell auto-approve misclassification enables RCE (GitHub Security Advisories, November 19, 2026, official)
- CodeWhale automation auto_approve defaults to true (GitHub Security Advisories, November 19, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.