CVE-2025-59956Coder Agentapi
Medium 6.5 No auth needed
Follow: this CVE · Coder · Coder Agentapi We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Sep 30, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Agentapi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/coder/agentapi |
< 0.4.0 |
0.4.0 |
go get github.com/coder/agentapi@v0.4.0 |
| Go | github.com/coder/agentapi |
< 0.4.0 |
0.4.0 |
go get github.com/coder/agentapi@v0.4.0 |
Per OSV / GitHub Advisories (GHSA-w64r-2g3w-w8w4, GO-2025-3991). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| coder | agentapi | < 0.4.0 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.blog Technical Description
- github.com Patch
- github.com Issue Tracking Patch
- github.com Release Notes
- github.com Patch Vendor Advisory
- mcpsec.dev Exploit Third Party Advisory
- mcpsec.dev Exploit Third Party Advisory