Medium severity6.5NVD Advisory· Published Sep 30, 2025· Updated Jun 17, 2026
CVE-2025-59956
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
7- ghsa-coords5 versionspkg:golang/github.com/coder/agentapipkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2016.0pkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
< 0.4.0+ 4 more
- (no CPE)range: < 0.4.0
- (no CPE)range: < 0.0.20251023T162509-1.1
- (no CPE)range: < 0.0.20260723T184607-160000.1.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
Patches
Vulnerability mechanics
References
10- github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149nvdPatchWEB
- github.com/coder/agentapi/pull/49nvdIssue TrackingPatchWEB
- github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4nvdPatchVendor AdvisoryWEB
- mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltrationnvdExploitThird Party AdvisoryWEB
- mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/nvdExploitThird Party Advisory
- 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-rebindingnvdTechnical DescriptionWEB
- github.com/coder/agentapi/releases/tag/v0.4.0nvdRelease NotesWEB
- pkg.go.dev/vuln/GO-2025-3991ghsaWEB
News mentions
0No linked articles in our index yet.