# CVE-2025-59956: AgentAPI exposed user chat history via a DNS rebinding attack

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-09-29T20:40:26.000Z
- Modified: 2026-06-17T09:46:55.230Z
- Also known as: GHSA-w64r-2g3w-w8w4, GO-2025-3991
- Weaknesses: CWE-290, CWE-350
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- coder agentapi: < 0.4.0; before 0.4.0
- github.com/coder/agentapi (Go): before 0.4.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration> (exploit, third-party-advisory, web)
- <https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/> (exploit, third-party-advisory)
- <https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4> (advisory, patch, vendor-advisory, web)
- <https://github.com/coder/agentapi/pull/49> (fix, issue-tracking, patch, web)
- <https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149> (fix, patch, web)
- <https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding> (technical-description, web)
- <https://github.com/coder/agentapi/releases/tag/v0.4.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59956> (advisory)
- <https://github.com/coder/agentapi> (package)
- <https://pkg.go.dev/vuln/GO-2025-3991> (web)

## Sources

- CVE List: [CVE-2025-59956](https://www.cve.org/CVERecord?id=CVE-2025-59956), CVE Terms of Use, modified 2025-09-30
- GitHub Advisory Database: [GHSA-w64r-2g3w-w8w4](https://github.com/advisories/GHSA-w64r-2g3w-w8w4), CC-BY-4.0, modified 2025-10-23
- Go Vulnerability Database: [GO-2025-3991](https://pkg.go.dev/vuln/GO-2025-3991), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-59956](https://nvd.nist.gov/vuln/detail/CVE-2025-59956), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59956 · Whole record: https://cve.day/CVE-2025-59956.json · Rebuilt by cve.day 2026-11-25T22:59:05.344Z
