CVE-2026-45311

Critical

Description

CodeWhale is a DeepSeek + MiMo coding agent in terminal. From 0.3.0 to 0.8.23, the run_tests tool executes cargo test in the workspace with ApprovalRequirement::Auto, meaning it runs without any user approval prompt. cargo test compiles and executes arbitrary code: test binaries, build.rs build scripts, and proc macros. While auto-approving test execution is a deliberate design choice, it creates an inconsistency in the security boundary. However, in a malicious repository, test code can execute arbitrary shell commands, exfiltrate credentials, or establish persistence with zero approval. The attack is amplified by AGENTS.md (auto-loaded into the system prompt), which can instruct the model to run tests proactively at session start. This vulnerability is fixed in 0.8.23.

SeverityCritical
CVSS9.6
Exploit probability—
ProductDeepseek-tui
PublishedMay 28, 2026
First seenMay 28, 2026

How to fix

Update
  • deepseek-tui0.8.23 or later
  • deepseek-tui-cli0.8.23 or later

Affected products

ProductAffected versionsFixed in
deepseek-tuicrates.io0.3.0 ≤ v < 0.8.230.8.23
deepseek-tui-clicrates.io0.3.0 ≤ v < 0.8.230.8.23

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.