Vulnerability · Published May 28, 2026 · Assigned by GitHub_M

CVE-2026-45310CodeWhale: SSRF via HTTP Redirect Bypass in fetch_url Tool

High 7.4

In plain English

A high-severity server-side request forgery in CodeWhale from Hmbown. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.3%top 79.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
npmdeepseek-tui0.8.22GHSA-96ff-gc8g-wpvg

Affected products (as reported)

VendorProductVersions
Hmbown CodeWhale < 0.8.22

Weakness: CWE-918 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

References