CVE-2026-45310: CWE-918: Server-Side Request Forgery (SSRF) in Hmbown CodeWhale
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.
AI Analysis
Technical Summary
CodeWhale versions before 0.8.22 contain an SSRF vulnerability (CWE-918) in the fetch_url tool. While the initial URL's IP address is checked against a restricted IP blocklist to prevent SSRF to internal services, the HTTP client (reqwest) automatically follows up to 5 redirects without re-validating the redirected URLs against the same blocklist. This flaw allows attackers to bypass SSRF protections by using redirects to access internal or restricted network endpoints. The vulnerability is resolved in CodeWhale 0.8.22 by ensuring proper validation of redirect targets.
Potential Impact
An attacker can exploit this vulnerability to perform SSRF attacks by using HTTP redirects to reach internal or restricted network resources that are normally protected by the IP blocklist. This can lead to unauthorized access to sensitive internal services such as cloud metadata endpoints or localhost interfaces. The CVSS score of 7.4 reflects a high severity impact with potential confidentiality loss but no integrity or availability impact is indicated.
Mitigation Recommendations
Upgrade CodeWhale to version 0.8.22 or later, where this SSRF vulnerability is fixed by validating redirect targets against the restricted IP blocklist. Since no official vendor advisory or patch link is provided, users should verify the version and update accordingly. Patch status is not explicitly confirmed beyond the version fix note, so checking the vendor's official channels for confirmation is recommended.
CVE-2026-45310: CWE-918: Server-Side Request Forgery (SSRF) in Hmbown CodeWhale
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.
CVSS v3.1
Score 7.4high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CodeWhale versions before 0.8.22 contain an SSRF vulnerability (CWE-918) in the fetch_url tool. While the initial URL's IP address is checked against a restricted IP blocklist to prevent SSRF to internal services, the HTTP client (reqwest) automatically follows up to 5 redirects without re-validating the redirected URLs against the same blocklist. This flaw allows attackers to bypass SSRF protections by using redirects to access internal or restricted network endpoints. The vulnerability is resolved in CodeWhale 0.8.22 by ensuring proper validation of redirect targets.
Potential Impact
An attacker can exploit this vulnerability to perform SSRF attacks by using HTTP redirects to reach internal or restricted network resources that are normally protected by the IP blocklist. This can lead to unauthorized access to sensitive internal services such as cloud metadata endpoints or localhost interfaces. The CVSS score of 7.4 reflects a high severity impact with potential confidentiality loss but no integrity or availability impact is indicated.
Mitigation Recommendations
Upgrade CodeWhale to version 0.8.22 or later, where this SSRF vulnerability is fixed by validating redirect targets against the restricted IP blocklist. Since no official vendor advisory or patch link is provided, users should verify the version and update accordingly. Patch status is not explicitly confirmed beyond the version fix note, so checking the vendor's official channels for confirmation is recommended.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-11T20:50:30.538Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a188377e29bf47b50179033
Added to database: 05/28/2026, 18:03:35 UTC
Last enriched: 06/04/2026, 20:48:14 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 70
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.