CVE-2026-75914: CodeWhale: image_analyze follows workspace symlinks, leaking external file bytes
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.
References
- github.com/Hmbown/CodeWhale/commit/26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e
- github.com/Hmbown/CodeWhale/security/advisories/GHSA-w7wx-5q49-r59w
- github.com/advisories/GHSA-w7wx-5q49-r59w
- nvd.nist.gov/vuln/detail/CVE-2026-75914
- www.vulncheck.com/advisories/codewhale-before-path-traversal-via-image-analyze-symlink
Code Behaviors & Features
Detect and mitigate CVE-2026-75914 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →