CVE-2025-59956AgentAPI exposed user chat history via a DNS rebinding attack
- 6.5MediumCVSS base score
- 0.43%Exploitation in 30 daysEPSS · top 63% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
Timeline
ID reserved
By GitHub_M
- 6 days later
· 6 days later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.43% · top 63% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/coder/agentapiGHSA-w64r-2g3w-w8w4 (opens in a new tab)
References
References7
- https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/coder/agentapi/pull/49 (opens in a new tab)x_refsource_MISC
- https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149 (opens in a new tab)x_refsource_MISC
- https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding (opens in a new tab)x_refsource_MISC
- https://github.com/coder/agentapi/releases/tag/v0.4.0 (opens in a new tab)x_refsource_MISC
- https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration (opens in a new tab)x_refsource_MISC
- https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/ (opens in a new tab)exploit
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-31619 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w64r-2g3w-w8w4 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-59956)Record last updated .