Skip to main content

CodeWhale EUVDEUVD-2026-126599

| CVE-2026-83817 HIGH
Missing Authorization (CWE-862)
2026-11-16 GitHub_M GHSA-8hp3-xxrg-v9c8
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver prompt injection to agent
  2. Delivery
    Model calls automation_create (auto_approve omitted)
  3. Exploit
    User approves one benign-looking job
  4. Execution
    Scheduler fires with ApprovalMode::Bypass
  5. Persist
    Mutating tools/shell auto-run unattended
  6. Impact
    Recurring silent code execution and file changes

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires CodeWhale <= 0.8.67 with the automation subsystem active (it is wired by default in TUI and serve mode via with_runtime_task_tools, not feature-gated). The attacker must (1) get injectable content to the agent to induce an automation_create call, and (2) obtain ONE human approval of that creation (automation_create is marked Required, so the user sees a single prompt); the auto_approve field must be omitted or true so it resolves to the insecure DEFAULT_AUTOMATION_AUTO_APPROVE=true. For silent command execution specifically, the create call must also set allow_shell:true (allow_shell defaults to false); without it, every recurring run still silently authorizes all non-shell mutating tools (write_file, apply_patch, edit_file, git, MCP writes). Limiting factors defenders can rely on: the one-time creation approval, the need for an injection foothold, and that upgrading to 0.9.0 (where the default is flipped to false) is the complete fix.

Impact

This is a genuine authorization/insecure-default flaw (CWE-862, CWE-1188) in CodeWhale's automation subsystem, scored CVSS 7.5 with vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H. The network vector and PR:N (unauthenticated) are plausible because the trigger is model-facing content (prompt injection), but AC:H and UI:R correctly reflect that exploitation is not trivial: an attacker must both land a prompt injection AND get a human to approve one apparently-benign automation_create call. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score and no KEV listing are provided in the input, so there is no signal of active or widespread exploitation; combined with AC:H/UI:R, this points to a meaningful-but-not-drop-everything priority rather than a high-CVSS-low-real-risk issue. The real severity driver is that a SINGLE approval creates a durable, recurring, fully auto-approved agent (ApprovalMode::Bypass) - with allow_shell:true that becomes recurring silent command execution with no human present, which is why C/I/A are all High. Note the conflict defenders should weigh: raw CVSS looks like a one-shot network RCE, but the described mechanism is a consent-laundering/persistence flaw gated behind user approval and an attacker-supplied prompt injection - verify the delivery path (how injectable content reaches the agent) against your deployment before prioritizing.

Exploit ScenarioDerived

An attacker plants prompt-injection content that the CodeWhale agent ingests, steering the model to call automation_create for an innocuous-sounding recurring job (e.g. 'nightly-maintenance') with allow_shell:true and auto_approve omitted. The user sees and approves a single creation prompt, not realizing the omitted auto_approve resolves to true; thereafter every scheduled fire silently auto-approves mutating tools (and, with shell enabled, executes commands) with no human present. A public PoC reference exists in the GHSA advisory showing the exact automation_create payload; it is not verified as a working end-to-end exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_create call yields a durable recurring agent whose every scheduled run executes under ApprovalMode::Bypass with no human present. CodeWhale 0.8.67 and earlier are affected; the flaw defeats the hardened task-path default introduced by CVE-2026-45374 and silently authorizes all non-shell mutating tools, and with allow_shell:true set at creation also delivers recurring silent shell execution. Version 0.9.0 flips the default to false and is the complete fix; no KEV entry or confirmed exploitation is reported, and a public PoC reference exists in the advisory (a prompt-injection sequence plus automation_create payload) but is not verified as working exploit code. CVSS 7.5 with AV:N/AC:H/PR:N/UI:R reflects that one user approval of the creation prompt is required, which is why this is a this_week priority rather than an emergency.

RemediationAI

Vendor-released patch: CodeWhale 0.9.0, available at https://github.com/codewhale-hq/Codewhale/releases/tag/v0.9.0 and detailed in GHSA-8hp3-xxrg-v9c8; upgrade every deployment of rust/codewhale-tui and npm/codewhale from <= 0.8.67 to 0.9.0 or later. The fix commit 208421b9d23d81cea3311a1eeb2a2ea81d637686 flips DEFAULT_AUTOMATION_AUTO_APPROVE to false, changes the automation_create schema default for auto_approve to false so durable automations require explicit opt-in, and additionally hardens command_safety.rs so that read-only parallel classification is refused for fd --exec/--exec-batch/-x/-X, rg --pre and git grep -O/--open-files-in-pager. Until the upgrade is deployed, choose among these compensating controls with their trade-offs: audit and delete or re-create existing automations that omit auto_approve (records created pre-patch store None, which still resolves to true), and re-create them with an explicit auto_approve:false so subsequent runs require approval; keep allow_shell out of any automation definition, accepting that automations then cannot run shell commands at all but non-shell mutating tools remain silently approved; and disable the automation tools for untrusted or injection-prone workloads by not enabling automation_create/automation_run, at the cost of losing scheduled automation entirely. Reviewing the single creation prompt is not a reliable control because the resolved auto_approve=true is not surfaced to the approver.

Affected VersionsENISA

CodeWhale < 0.9.0

Affected Packages

cargo codewhale fix: 0.9.0
cargo codewhale-tui fix: 0.9.0
npm codewhale fix: 0.9.0
npm codewhale-tui fix: 0.9.0
euvd codewhale fix: 0.9.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in cargo, npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CodeWhale is a Rust terminal coding agent (shipped as the rust/codewhale-tui crate and the npm/codewhale package) built around tool-calling turns, a task manager and a durable automation scheduler. CWE-1188 (insecure default) is the root cause: in automation_manager.rs the sibling durable settings DEFAULT_AUTOMATION_ALLOW_SHELL and DEFAULT_AUTOMATION_TRUST_MODE both default to false, but DEFAULT_AUTOMATION_AUTO_APPROVE was set to true, and the automation_create tool schema advertised the same value via "auto_approve": {"type":"boolean","default":true}. CWE-862 (missing authorization) is the resulting weakness: create_automation stores auto_approve: None when the field is omitted, AutomationRecord::task_auto_approve() resolves None to true, and enqueue_run_task constructs the NewTaskRequest with auto_approve: Some(true). Because the value is Some, the task path's safer unwrap_or(false) fallback never applies, and the flag propagates to ApprovalMode::Bypass in runtime_threads.rs, where the background approval loop approves every tool call. The auto_review safety_floor only holds Publish actions and Destructive/Secret actions from background or headless origins, so ordinary write_file, apply_patch, edit_file, git and MCP write operations pass through unattended; the automation tools are registered by default through with_runtime_task_tools in both TUI and serve mode, so no non-default feature flag is needed on the victim side. The triggering route requires attacker-supplied injectable content to induce the automation_create call plus one human approval of that call, which is consistent with the AC:H and UI:R vector components.

Know when Codewhale gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

Injection-driven so AV:N/PR:N, but needs successful injection plus a one-time human approval (AC:H, UI:R); unattended runs then yield full read/write/exec, so C:H/I:H/A:H.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 20:18 EUVD
CVE Published
Nov 16, 2026 - 18:57 cve.org
HIGH 7.5

DescriptionCVE.org

CodeWhale is a DeepSeek and MiMo coding agent for the terminal. Prior to 0.9.0, DEFAULT_AUTOMATION_AUTO_APPROVE caused AutomationRecord::task_auto_approve to resolve an omitted setting to true, and the automation_create schema advertised the same insecure default. enqueue_run_task converted that omission into an explicit true value, bypassing the safer task-path fallback and selecting ApprovalMode::Bypass for each scheduled run. After a user approved creation of an apparently benign recurring automation, subsequent executions could silently authorize mutating tools without a human present, and an automation created with shell access could repeatedly execute commands. This issue is fixed in version 0.9.0.

Technical POC Analysis

CWE-862 (Missing Authorization), composite with CWE-1188 (insecure default initialization - the advisory lists both).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-83817 affects CodeWhale versions 0.8.67 and earlier, where an omitted setting causes scheduled automation runs to execute with approval bypass, enabling silent and recurring execution of mutating tools and potentially shell commands. This undermines a previously hardened security default and could allow unauthorized changes to critical systems, impacting the integrity of automated workflows and requiring immediate leadership attention to prevent operational disruptions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis

Threat Intelligence Overview

EPSS Score
0.7%
Top 47% exploitable
Prevalence
Low
niche terminal coding agent for DeepSeek/MiMo, limited enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2026-75856 CRITICAL POC
9.2 Aug 18

Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th

CVE-2026-75915 HIGH POC
8.7 Aug 18

Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl

CVE-2026-75914 HIGH POC
8.7 Aug 18

Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'

CVE-2026-75859 HIGH POC
8.7 Aug 18

Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta

CVE-2026-75913 HIGH POC
8.5 Aug 18

Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ

CVE-2026-75858 HIGH POC
8.5 Aug 18

Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac

CVE-2026-75911 HIGH POC
8.5 Aug 18

Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach

CVE-2026-75912 HIGH POC
8.3 Aug 18

Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz

CVE-2026-75857 HIGH POC
7.3 Aug 18

Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr

CVE-2026-83816 HIGH
8.1 Nov 16

Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy