Skip to main content

CodeWhale CVE-2026-75856

| EUVDEUVD-2026-60963 CRITICAL
Server-Side Request Forgery (SSRF) (CWE-918)
2026-08-18 VulnCheck GHSA-6v2g-fpxh-pmmh
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply attacker-controlled URL to fetch_url
  2. Delivery
    Serve failing/benign DNS for preflight check
  3. Exploit
    Rebind hostname to internal IP for fetch
  4. Execution
    CodeWhale requests internal endpoint server-side
  5. Impact
    Exfiltrate internal/metadata response

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the attacker can (a) influence the target URL/hostname passed to CodeWhale's fetch_url tool and (b) manipulate DNS resolution for that hostname so the initial validation check and the subsequent HTTP request resolve differently - i.e., control of authoritative DNS or the ability to race/rebind responses (the TOCTOU window). The specific vulnerable condition is the pre-patch behavior where a failed preflight DNS lookup caused the target to proceed without a pinned validated IP. Limiting factors: the flaw only matters on versions before 0.8.64 with the fetch_url tool reachable by attacker-influenced input; it does not require authentication per the CVSS vector (PR:N), but reliable exploitation is bounded by the attacker's ability to control DNS timing, and impact is confidentiality-oriented (VC:H/SC:H) with no integrity or availability effect.

Impact

This is a genuinely high-impact SSRF given its context: the vendor CVSS 4.0 rates it 9.2 with AV:N/AC:L/PR:N/UI:N and confidentiality impact on both the vulnerable system (VC:H) and a subsequent system (SC:H), reflecting that reaching internal services can expose sensitive data such as cloud metadata endpoints or internal APIs. I would temper attack complexity slightly - reliable exploitation depends on controlling or racing DNS responses (TOCTOU), which argues for AC:H rather than AC:L, though an attacker who supplies the URL generally controls the authoritative DNS for their own host, keeping exploitation practical. There is no EPSS score, no CISA KEV listing, and no public proof-of-concept in the provided data, so the raw 9.2 reflects potential impact rather than observed mass exploitation; SSRF-to-internal-network is exactly the class defenders should prioritize whenever the affected component is exposed to attacker-influenced URLs. Anyone running CodeWhale where untrusted input can drive the fetch_url tool should treat patching as urgent and not wait on external exploitation signals.

Exploit ScenarioDerived

An attacker feeds CodeWhale's fetch_url tool a URL on a hostname whose authoritative DNS they control (or can spoof), timing responses so the pre-fetch validation sees a failing or public answer while the subsequent actual request resolves to an internal address like 169.254.169.254. The agent then issues the request server-side, returning internal-only content (e.g., cloud metadata or internal service responses) to the attacker. No public proof-of-concept is identified in the provided data, but the fix commit ships regression tests demonstrating the preflight gap.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 18, 2026

Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through the agent's fetch_url tool by exploiting a time-of-check-time-of-use gap in its DNS-pinning defense. Because the pre-fetch validator treated a failed DNS lookup as a pass-through ('let the HTTP request proceed and fail naturally'), an attacker who controls DNS responses can make the safety check see a non-resolving or benign answer while the real request resolves to an internal address, bypassing the SSRF allow/deny policy. No public exploit identified at time of analysis; a vendor patch and fix commit exist, and the issue was reported by VulnCheck.

RemediationAI

Vendor-released patch: upgrade to CodeWhale 0.8.64 or later, which changes validate_fetch_target to reject hosts that fail DNS preflight and to require a validated resolved address before any fetch (fix commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e; advisory GHSA-6v2g-fpxh-pmmh). If you cannot upgrade immediately, restrict the agent's outbound network path: run CodeWhale behind an egress proxy or firewall that denies traffic to RFC1918/link-local ranges (notably 169.254.169.254 cloud metadata, 127.0.0.0/8, 10/8, 172.16/12, 192.168/16), which neutralizes the SSRF target set at the cost of blocking any legitimate internal fetches; and constrain or disable the fetch_url tool for untrusted sessions, accepting reduced functionality. These controls compensate for the TOCTOU by enforcing the internal-IP block at the network boundary rather than inside the resolver.

Affected VersionsENISA

CodeWhale 0.8.5 <0.8.41
CodeWhale 0.8.41 <0.8.64

Affected Packages

cargo codewhale fix: 0.8.64
cargo codewhale-tui fix: 0.8.64
cargo deepseek-tui fix: 0.8.41
npm codewhale fix: 0.8.64
npm codewhale-tui fix: 0.8.64
npm deepseek-tui fix: 0.8.41
euvd codewhale fix: 0.8.41, 0.8.64

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in cargo, npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CodeWhale is a Rust-based terminal AI coding agent (code under crates/tui). Its fetch_url tool is supposed to prevent SSRF by resolving the target host and validating each resolved IP against a network policy (validate_dns_resolved_ip) before making the outbound HTTP request - a DNS-pinning pattern. The root cause is CWE-918 (SSRF) manifesting as a TOCTOU flaw: the vulnerable validate_fetch_target wrapped resolution in if let Ok(addrs), so when the preflight lookup failed it fell through and returned an un-pinned target (Ok(None)), and the comment explicitly deferred to letting the HTTP layer resolve again later. Between the check and the use, DNS can return different data (classic DNS rebinding / response manipulation), so the enforced IP need not match the fetched IP. The patched code makes a failed lookup a hard permission_denied error and requires at least one validated address before proceeding.

Know when Codewhale gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

Network-reachable and unauthenticated (PR:N), but reliable exploitation needs DNS control and a TOCTOU race (AC:H); SSRF reaches other internal systems (S:C) exposing data (C:H) with no integrity/availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

CodeWhale before 0.8.64 contains a server-side request forgery bypass vulnerability in DNS pinning logic that fails to prevent time-of-check-time-of-use attacks. Attackers can manipulate DNS responses to fail initial resolution checks and succeed on secondary requests, allowing requests to internal IP addresses and bypassing SSRF mitigations.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CodeWhale versions before 0.8.64 contain a critical vulnerability allowing remote attackers to bypass DNS security controls and access internal-only services and databases. Any organization deploying CodeWhale agents faces immediate risk of data breaches, unauthorized backend access, and infrastructure reconnaissance. Emergency patching to version 0.8.64 or later is critical to prevent exploitation.

Business Impact: Severe
Compensating Controls

Apply vendor patch to version 0.8.64 or later.

Threat Intelligence Overview

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Rare
niche single-maintainer AI coding TUI, negligible enterprise footprint
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2026-75915 HIGH POC
8.7 Aug 18

Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl

CVE-2026-75914 HIGH POC
8.7 Aug 18

Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'

CVE-2026-75859 HIGH POC
8.7 Aug 18

Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta

CVE-2026-75913 HIGH POC
8.5 Aug 18

Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ

CVE-2026-75858 HIGH POC
8.5 Aug 18

Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac

CVE-2026-75911 HIGH POC
8.5 Aug 18

Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach

CVE-2026-75912 HIGH POC
8.3 Aug 18

Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz

CVE-2026-75857 HIGH POC
7.3 Aug 18

Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr

CVE-2026-83816 HIGH
8.1 Nov 16

Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin

CVE-2026-83817 HIGH
7.5 Nov 16

CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy