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

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T20:29:26.000Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-96ff-gc8g-wpvg
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Hmbown CodeWhale: < 0.8.22
- deepseek-tui (crates.io): before 0.8.22
- deepseek-tui-cli (crates.io): before 0.8.22
- deepseek-tui (npm): before 0.8.22

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-96ff-gc8g-wpvg> (exploit, web)
- <https://github.com/Hmbown/DeepSeek-TUI/releases/tag/v0.8.22> (web)
- <https://github.com/Hmbown/DeepSeek-TUI/security/advisories/GHSA-96ff-gc8g-wpvg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45310> (advisory)
- <https://github.com/Hmbown/DeepSeek-TUI> (package)

## Sources

- CVE List: [CVE-2026-45310](https://www.cve.org/CVERecord?id=CVE-2026-45310), CVE Terms of Use, modified 2026-05-30
- GitHub Advisory Database: [GHSA-96ff-gc8g-wpvg](https://github.com/advisories/GHSA-96ff-gc8g-wpvg), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2026-45310](https://nvd.nist.gov/vuln/detail/CVE-2026-45310), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-45310 · Whole record: https://cve.day/CVE-2026-45310.json · Rebuilt by cve.day 2026-11-25T22:59:22.989Z
