Skip to content
OpenAdvisories
High · 7.4 CVE-2026-45310 EUVD-2026-32964GHSA-96ff-gc8g-wpvg

CodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool

Published May 28, 2026 · Updated May 30, 2026 · Assigned by GitHub_M

Description

CodeWhale is a DeepSeek + MiMo coding agent in terminal. Prior to 0.8.22, the fetch_url tool validates the initial URL's resolved IP address against a restricted-IP blocklist (is_restricted_ip()) to prevent SSRF attacks against internal services (cloud metadata endpoints, localhost, private networks). However, the HTTP client (reqwest) is configured to automatically follow up to 5 redirects (reqwest::redirect::Policy::limited(5)) without re-validating the redirect target against the same SSRF protections. This vulnerability is fixed in 0.8.22.

Affected products

VendorProductAffectedFixed
Hmbown CodeWhale < 0.8.22 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io deepseek-tui < 0.8.22 0.8.22 GHSA-96ff-gc8g-wpvg
crates.io deepseek-tui-cli < 0.8.22 0.8.22 GHSA-96ff-gc8g-wpvg
npm deepseek-tui < 0.8.22 0.8.22 GHSA-96ff-gc8g-wpvg

References