highCVSS 7.5Vulnerability

CVE-2026-75914

### 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 image_analyze follows workspace symlinks and leaks outside-workspace file bytes to the vision endpoint The image_analyze tool resolves its image_path with a bare context.workspace.join instead of routing through ToolContext::resolve_path. The pre-join lexical check rejects absolute paths, Windows prefixes, and parent-dir components but never canonicalizes, so a symlink inside the workspace whose name ends in an image extension and whose target sits outside the workspace is read transparently. The tool has ReadOnly capability and the trait default makes it auto-approved, so the bypass executes with no user prompt. ### Details In `crates/tui/src/vision/tools.rs` (v0.8.37, lines 104-123): ```rust async fn execute(&self, input: Value, context: &ToolContext) -> Result<ToolResult, ToolError> { let image_path = required_str(&input, "image_path")?; let prompt = input .get("prompt") .and_then(|v| v.as_str()) .unwrap_or("Describe this image in detail."); let image_path_buf = Path::new(image_path); if image_path_buf.components().any(|c| { matches!( c, Component::Prefix(_) | Component::RootDir | Component::ParentDir ) }) { return Err(ToolError::execution_failed( "image_path must be a relative path within the workspace and cannot escape it.", )); } let resolved_path = context.workspace.join(image_path_buf); let (image_data, mime_type) = Self::read_image_file(&resolved_path).await?; ``` `read_image_file` (lines 31-39) is a `tokio::fs::read(path)` call which follows symlinks. The bytes are then base64-encoded and embedded as `

Properties

ghsa_id
GHSA-w7wx-5q49-r59w
severity
high
summary
CodeWhale: image_analyze follows workspace symlinks, leaking external file bytes
cvss_score
7.5
cve_id
CVE-2026-75914
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
ghsa_published
2026-09-04T17:34:55Z
source_url
https://github.com/advisories/GHSA-w7wx-5q49-r59w
ghsa_updated
2026-09-04T17:34:55Z

Related Entities (11)

VULNERABLE_TO (4)

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

AFFECTS (4)

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

HAS_WEAKNESS (2)

[Weakness]Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
[Weakness]Improper Link Resolution Before File Access ('Link Following')

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

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