CVE-2025-59956
Coder Agentapi vulnerability
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.
Affected products
Agentapi. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Coder Agentapi runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/ · Exploit
- github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4
- github.com/coder/agentapi/pull/49
- github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149
- github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding
- github.com/coder/agentapi/releases/tag/v0.4.0
- mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration
- nvd.nist.gov/vuln/detail/CVE-2025-59956
- nvd.nist.gov/vuln/detail/CVE-2025-59956
- cve.org/CVERecord?id=CVE-2025-59956
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.