Skip to main content

CodeWhale EUVDEUVD-2026-60973

| CVE-2026-75915 HIGH
Information Exposure (CWE-200)
2026-08-18 VulnCheck GHSA-h539-c7r8-3xq4
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Craft malicious JS payload
  2. Delivery
    Inject via prompt injection into AI workflow
  3. Exploit
    CodeWhale invokes js_execution tool
  4. Install
    Node.js spawns with full inherited parent env
  5. C2
    Malicious code reads process.env
  6. Execute
    Credentials returned in model context
  7. Impact
    Attacker retrieves secrets from response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

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

Exploitation Conditions

Exploitation requires Node.js to be installed and accessible on the host running CodeWhale, since the js_execution tool must successfully spawn a Node.js child process. An attacker must also be able to control or influence the JavaScript code submitted to the tool - in practice this means either direct access to the CodeWhale interactive session or the ability to inject malicious instructions into an AI-driven workflow that uses CodeWhale (prompt injection). Exploitation is limited by: absence of Node.js on the host (blocks the tool entirely and makes the vulnerability unexploitable), environments where no secrets are present as process environment variables (eliminates impact regardless of code execution), and the indirect exfiltration path through model output context rather than a direct network channel to the attacker. The CVSS 4.0 PR:N metric reflects that no authentication to an external service is required once JavaScript code execution via the tool is achieved.

Impact

The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N) reflects a fully unauthenticated remote confidentiality-only impact, which is plausible in AI agentic pipeline scenarios where prompt injection can influence which JavaScript gets executed. The confidentiality impact is genuinely high: developers and CI/CD systems frequently expose AWS credentials, OPENAI_API_KEY, GitHub tokens, and similar secrets as process environment variables - exactly the credentials present in a CodeWhale operator's environment. No EPSS data was provided, and no KEV listing or public proof-of-concept has been identified, which moderates the immediacy of mass-exploitation risk. The practical risk is substantially limited by two factors: Node.js must be installed on the host for the tool to function, and an attacker must control or influence the JavaScript submitted to js_execution, most realistically via prompt injection. Organizations not using CodeWhale in AI-driven pipelines exposed to untrusted input have significantly reduced exposure despite the high CVSS. No conflicting signals between CVSS vector and description were found.

Exploit ScenarioDerived

An attacker performing prompt injection against a CodeWhale-powered AI development pipeline crafts a malicious instruction that causes the model to invoke the js_execution tool with the payload process.stdout.write(JSON.stringify(process.env)). When CodeWhale spawns Node.js to run this code, the complete parent environment - including any AWS_SECRET_ACCESS_KEY, OPENAI_API_KEY, or GitHub tokens present - is written to standard output and captured in the model's response context, where the attacker retrieves it. No public proof-of-concept has been identified, but exploitation requires only standard Node.js knowledge and the ability to influence the AI model's tool calls.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payloads to read the full parent process environment via process.env, exposing API keys, cloud credentials, and authentication tokens to the model context. The affected codebase is a Rust TUI AI coding assistant whose Node.js child process spawning failed to sanitize the environment before execution. No public exploit code or CISA KEV listing has been identified at time of analysis; a vendor patch is available via GitHub advisory GHSA-h539-c7r8-3xq4.

RemediationAI

Upgrade CodeWhale to version 0.8.64 or later, which applies the environment sanitization fix in commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e (https://github.com/Hmbown/CodeWhale/commit/26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e). The patch replaces the unsafe inheritance path with an explicit child_env::apply_to_tokio_command() call that clears the environment before applying only the necessary proxy overrides. If immediate upgrade is not feasible, a compensating control is to avoid running CodeWhale in environments where sensitive credentials exist as process environment variables: use IAM instance roles, Vault agent sidecars, or other runtime secret injection mechanisms that do not expose secrets to the parent process environment. The trade-off is operational complexity and potential disruption to credential-dependent workflows. Additionally, restricting which users or pipelines can trigger AI-driven JavaScript execution in CodeWhale reduces the prompt injection attack surface. Refer to the vendor advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-h539-c7r8-3xq4 for authoritative guidance.

Affected VersionsENISA

CodeWhale 0.8.41 <0.8.64
CodeWhale 0.8.32 <0.8.41

Affected Packages

cargo codewhale fix: 0.8.64
cargo codewhale-tui fix: 0.8.64
cargo deepseek-tui fix: 0.8.41
npm codewhale fix: 0.8.64
npm codewhale-tui fix: 0.8.64
npm deepseek-tui fix: 0.8.41
euvd codewhale fix: 0.8.41, 0.8.64

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 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 (CPE: cpe:2.3:a:hmbown:codewhale:*:*:*:*:*:*:*:*) is a TUI-based AI coding assistant implemented in Rust under the crates/tui crate. Its js_execution tool spawns Node.js child processes to evaluate JavaScript on behalf of the AI model. The vulnerable function apply_node_proxy_env used tokio::process::Command::env() to add proxy-specific overrides but never called env_clear() first, so the spawned Node.js process inherited the complete environment of the parent CodeWhale process by default. Any JavaScript executed by the tool could trivially call process.env to enumerate and exfiltrate all inherited variables. This is a CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) root cause. The commit diff confirms the fix introduces crate::child_env::apply_to_tokio_command(), which explicitly clears the environment before applying only the minimal required overrides, and a regression test (execute_js_does_not_inherit_parent_secret_env) verifies that a secret set on the parent does not appear in child output.

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 (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network vector applies via prompt injection path; PR:N consistent with no authentication required to reach the tool; confidentiality-only impact with no integrity or availability consequence.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

CodeWhale versions before 0.8.64 contain an environment variable exposure vulnerability in the js_execution tool that fails to scrub parent process environment variables before spawning Node.js. Attackers can craft malicious JavaScript code executed by the tool to read process.env and leak API keys, cloud credentials, and authentication tokens back to the model context.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CodeWhale's js_execution tool (versions prior to 0.8.64) exposes API keys, cloud credentials, and authentication tokens to model context through improper environment variable sanitization in Node.js child processes. Organizations using this Rust TUI AI coding assistant risk unauthorized access to backend systems and sensitive data exposure through the AI model's reasoning process.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 59% exploitable
Prevalence
Rare
niche AI TUI coding tool, limited enterprise adoption
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 Yes
EPSS 0.5%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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-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

CVE-2026-83817 HIGH
7.5 Nov 16

CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat

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