{"id":"CVE-2025-59956","published":"2025-09-29T23:57:08Z","modified":"2025-09-30T14:14:53Z","title":"AgentAPI exposed user chat history via a DNS rebinding attack","vendor":"coder","product":"agentapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00709,"percentile":0.49157,"provenance":"source"},"cwes":[{"id":"CWE-350","name":"Reliance on Reverse DNS Resolution for a Security-Critical Action"}],"references":[{"url":"https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/coder/agentapi/pull/49","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149","tags":["x_refsource_MISC"]},{"url":"https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding","tags":["x_refsource_MISC"]},{"url":"https://github.com/coder/agentapi/releases/tag/v0.4.0","tags":["x_refsource_MISC"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration","tags":["x_refsource_MISC"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/","tags":["exploit"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":9.83},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"coder","affectedVersions":[{"vendor":"coder","product":"agentapi","versions":["< 0.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-30T14:14:39.407205Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/coder/agentapi","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-w64r-2g3w-w8w4","GO-2025-3991"],"provenance":"source"}],"summary":{"text":"AgentAPI, an HTTP API for Claude Code, Goose, Aider, Gemini, Amp and Codex from coder, contains a flaw that makes it vulnerable to client-side DNS rebinding when it is served over plain HTTP on localhost. An attacker who can get a victim to load a malicious page can use this to reach the /messages endpoint and exfiltrate local message history, which may contain secrets, file system contents and work-in-progress intellectual property, provided the victim interacts with that page (user interaction is required) and no authentication is needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:00:22Z"},"euvd":{"id":"EUVD-2025-31619","exploited":false,"provenance":"source"},"exploitRefs":["https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/"]}