highCVSS 7.5Vulnerability

CVE-2026-75915

### Maintainer resolution The CodeWhale maintainers validated this report. The affected package ranges are recorded in the advisory metadata. Version 0.8.64 contains the fix in commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e. Users should upgrade to 0.8.64 or later. The original reporter analysis is preserved below. ### Summary js_execution exposes parent process environment to model-provided JavaScript The js_execution tool spawns Node with tokio::process::Command::new without calling the child_env scrubber that exec_shell, the Python REPL, and the MCP launcher all use. Model-provided JavaScript reads process.env and the values flow back to the parent transcript as the tool's stdout, exposing API keys, cloud credentials, and forge tokens to the next model turn. ### Details In `crates/tui/src/tools/js_execution.rs` (v0.8.37, lines 91-105): ```rust let temp_dir = tempfile::tempdir() .map_err(|e| ToolError::execution_failed(format!("tempdir failed: {e}")))?; let script_path = temp_dir.path().join("js_execution.js"); tokio::fs::write(&script_path, code) .await .map_err(|e| ToolError::execution_failed(format!("tempfile write failed: {e}")))?; let mut cmd = tokio::process::Command::new(&node); cmd.arg(&script_path); cmd.current_dir(workspace); let output = tokio::time::timeout(Duration::from_secs(120), cmd.output()) .await .map_err(|_| ToolError::Timeout { seconds: 120 }) .and_then(|res| res.map_err(|e| ToolError::execution_failed(e.to_string())))?; ``` The Command is built without `cmd.env_clear()` and without the project's `crate::child_env::apply_to_tokio_command` helper. Every variable in the parent process environment is inherited by the spawned `node`. For comparison, exec_shell (`crates/tui/src/tools/shell.rs:790-792`) and the Python REPL (`crates/tui/src/repl/runtime.rs:238`) both apply the scrubber: ```rust child_env::apply_to_command(&mut cmd, child_env::string_map_env(&exec_env.env)); ``` apply_to_tokio_command calls `cmd.e

Properties

summary
CodeWhale: js_execution leaks parent environment to model context via missing env scrub
severity
high
epss_score
0.00504
cvss_score
7.5
ghsa_published
2026-09-04T18:03:08Z
source_url
https://github.com/advisories/GHSA-h539-c7r8-3xq4
ghsa_updated
2026-09-04T18:03:09Z
ghsa_id
GHSA-h539-c7r8-3xq4
cve_id
CVE-2026-75915
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
is_ghsa_only
false
epss_percentile
0.41207

Related Entities (12)

ENRICHED_BY (1)

[Source]FIRST EPSS

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (4)

[Software]npm/deepseek-tui
[Software]rust/codewhale-tui
[Software]npm/codewhale
[Software]rust/deepseek-tui

AFFECTS (4)

[Software]npm/deepseek-tui
[Software]rust/codewhale-tui
[Software]npm/codewhale
[Software]rust/deepseek-tui

HAS_WEAKNESS (2)

[Weakness]Exposure of Sensitive Information to an Unauthorized Actor
[Weakness]Cleartext Storage of Sensitive Information in an Environment Variable

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-75915 (CVSS 7.5) — Ninja Signal Threat Intelligence | Ninja Signal