Hmbown CodeWhale
CodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.4high · scored by CNA · CWE-918
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Hmbown CodeWhale
- < 0.8.22
Fixed in 0.8.22
Mitigation
Upgrade CodeWhale to 0.8.22 or later.
References
- Vendor advisory github.com/Hmbown/CodeWhale/security/advisorie…
- Release notes github.com/Hmbown/DeepSeek-TUI/releases/tag/v0…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.