{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-59956","id":"CVE-2025-59956","title":"AgentAPI exposed user chat history via a DNS rebinding attack","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 inclu","descriptionLong":"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.","published":"2025-09-29T23:57:08.133Z","updated":"2026-10-28T02:30:28.097527352Z","reserved":"2025-09-23T14:33:49.506Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["coder agentapi"],"affectedProducts":[{"vendor":"coder","product":"agentapi","defaultStatus":null,"versions":[{"version":"< 0.4.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/coder/agentapi","purl":"pkg:golang/github.com/coder/agentapi","ranges":["<0.4.0"],"fixed":["0.4.0"],"advisory":"GHSA-w64r-2g3w-w8w4"}],"cwes":["CWE-350","CWE-290"],"aliases":["GHSA-w64r-2g3w-w8w4","GO-2025-3991"],"references":[{"url":"https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4","tags":["x_refsource_CONFIRM","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/coder/agentapi/pull/49","tags":["x_refsource_MISC","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding","tags":["x_refsource_MISC","Technical Description","article","web"]},{"url":"https://github.com/coder/agentapi/releases/tag/v0.4.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration","tags":["x_refsource_MISC","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/","tags":["exploit","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59956.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59956","tags":["advisory"]},{"url":"https://github.com/coder/agentapi","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3991","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00426,"epssPercentile":0.37579,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-59956","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59956","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-59956","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w64r-2g3w-w8w4","ok":true,"note":"GHSA-w64r-2g3w-w8w4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-59956","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}