CodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-918 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Hmbown | CodeWhale | before 0.8.22 | 0.8.22 | Patch available | CNA |
| — | deepseek-tui (crates.io) | before 0.8.22 | 0.8.22 | Patch available | GHSA-96ff-gc8g-wpvg |
| — | deepseek-tui-cli (crates.io) | before 0.8.22 | 0.8.22 | Patch available | GHSA-96ff-gc8g-wpvg |
| — | deepseek-tui (npm) | before 0.8.22 | 0.8.22 | Patch available | GHSA-96ff-gc8g-wpvg |
- CodeWhale VendorHmbown Affected before 0.8.22 Fixed in 0.8.22 Patch available CNA
- deepseek-tui (crates.io) Vendor— Affected before 0.8.22 Fixed in 0.8.22 Patch available GHSA-96ff-gc8g-wpvg
- deepseek-tui-cli (crates.io) Vendor— Affected before 0.8.22 Fixed in 0.8.22 Patch available GHSA-96ff-gc8g-wpvg
- deepseek-tui (npm) Vendor— Affected before 0.8.22 Fixed in 0.8.22 Patch available GHSA-96ff-gc8g-wpvg
Remediation
- Fix · CNA CodeWhale (Hmbown) Fixed in 0.8.22
- Fix · GHSA-96ff-gc8g-wpvg deepseek-tui (crates.io) Fixed in 0.8.22 Advisory →
- Fix · GHSA-96ff-gc8g-wpvg deepseek-tui-cli (crates.io) Fixed in 0.8.22 Advisory →
- Fix · GHSA-96ff-gc8g-wpvg deepseek-tui (npm) Fixed in 0.8.22 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-45310
- 2026-10-03 Alias added: GHSA-96ff-gc8g-wpvg
References
More Hmbown vulnerabilities
- TI-2026-53100 CodeWhale before 0.8.64 SSRF Bypass via DNS Pinning TOCTOU CVSS 4.0CRITICAL 9.2
- TI-2026-53143 CodeWhale before 0.8.64 Environment Variable Leak via js_execution CVSS 4.0HIGH 8.7
- TI-2026-33165 CodeWhale: task_create Insecure Defaults Enable RCE via Prompt Injection in Project Files CVSS 3.1CRITICAL 9.6
- TI-2026-33110 CodeWhale: run_tests Tool Enables RCE via Malicious Repository Without Approval CVSS 3.1CRITICAL 9.6
- TI-2026-53141 CodeWhale before 0.8.64 Argument Injection via git_show CVSS 4.0HIGH 8.5
- TI-2026-53139 CodeWhale before 0.8.64 Remote Code Execution via allow_shell CVSS 4.0HIGH 8.5
Sources
- CVE-2026-45310 · CVE Program
- CVE-2026-45310 · NVD
- FIRST EPSS
- GHSA-96ff-gc8g-wpvg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences