Moderate severityNVD Advisory· Published Sep 29, 2025· Updated Sep 30, 2025
AgentAPI exposed user chat history via a DNS rebinding attack
CVE-2025-59956
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/coder/agentapiGo | < 0.4.0 | 0.4.0 |
Affected products
5- ghsa-coords4 versionspkg:golang/github.com/coder/agentapipkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6
< 0.4.0+ 3 more
- (no CPE)range: < 0.4.0
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- (no CPE)range: < 0.0.20251023T162509-1.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- coder/agentapiv5Range: < 0.4.0
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-w64r-2g3w-w8w4ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-59956ghsaADVISORY
- github.blog/security/application-security/localhost-dangers-cors-and-dns-rebindingghsax_refsource_MISCWEB
- github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149ghsax_refsource_MISCWEB
- github.com/coder/agentapi/pull/49ghsax_refsource_MISCWEB
- github.com/coder/agentapi/releases/tag/v0.4.0ghsax_refsource_MISCWEB
- github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4ghsax_refsource_CONFIRMWEB
- mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltrationghsax_refsource_MISCWEB
- pkg.go.dev/vuln/GO-2025-3991ghsaWEB
News mentions
0No linked articles in our index yet.