Skip to main content
VulnerabilityPublished

CVE-2025-59956: coder agentapi · Reliance on Reverse DNS Resolution for a Security-Critical Action

Affects coder agentapiSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium : upgrade to 0.4.0 when convenient.

Data as of 26 Oct 2026, 12:55 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.4.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Sep 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade coder agentapi to 0.4.0.

Affected software

ProductAffectedFixed in
coder agentapiAffected
  • <0.4.0
Fixed in
  • 0.4.0

AI-suggested

  1. Upgrade all AgentAPI deployments to version 0.4.0 or later immediately to apply the official fix.
  2. Enforce HTTPS for all localhost API communications to prevent interception and manipulation of DNS responses.
  3. Disable reliance on reverse DNS resolution for security decisions within the API or implement strict validation of DNS responses.
  4. Implement strict origin and referer header checks to ensure requests to the /messages endpoint originate from trusted sources.
  5. Restrict access to the AgentAPI localhost endpoints using firewall rules or local network policies to prevent unauthorized external access.
  6. Educate users about the risks of visiting untrusted websites that could trigger DNS rebinding attacks.
  7. Monitor network traffic for suspicious DNS rebinding patterns or unexpected localhost API requests.
  8. Consider implementing authentication and authorization mechanisms on localhost APIs to prevent unauthorized access.
  9. Conduct regular security audits and penetration testing focused on localhost API exposures and DNS-related attack vectors.

Description

AgentAPI is an HTTP API for Claude Code, Goose, Aider, Gemini, Amp, and Codex. Versions 0.3.3 and below are susceptible to a client-side DNS rebinding attack when hosted over plain HTTP on localhost. An attacker can gain access to the /messages endpoint served by the Agent API. This allows for the unauthorized exfiltration of sensitive user data, specifically local message history, which can include secret keys, file system contents, and intellectual property the user was working on locally. This issue is fixed in version 0.4.0.

References

Community reviews

Loading reviews…