{"schemaVersion":3,"id":"CVE-2025-59956","aliases":["GHSA-w64r-2g3w-w8w4","GO-2025-3991"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-09-29T23:57:08.133Z","modified":"2025-09-30T14:14:53.214Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00426,"percentile":0.35445,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00426},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00426,"percentile":0.35445}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00426,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00426,"percentile":0.35445}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_B08DDDB8450B3841","name":"Exploit Reference (mcpsec.dev)","source":"reference","url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_ACC4221B739C8F98","name":"Exploit Reference (mcpsec.dev)","source":"reference","url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-350","name":"Reliance on Reverse DNS Resolution for a Security-Critical Action","description":"The product performs reverse DNS resolution on an IP address to obtain the hostname and make a security decision, but it does not properly ensure that the IP address is truly associated with the hostname.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/350.html"},{"id":"CWE-290","name":"Authentication Bypass by Spoofing","description":"This attack-focused weakness is caused by incorrectly implemented authentication schemes that are subject to spoofing attacks.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/290.html"}],"affected":[{"vendor":"coder","product":"agentapi","name":"agentapi","label":"agentapi","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.0","eol":null,"hubHref":"/vendor/coder/agentapi"},{"vendor":"github.com/coder","product":"agentapi","name":"github.com/coder/agentapi","label":"agentapi","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/coder/agentapi","purlType":"golang","versions":[{"text":"< 0.4.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.4.0","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4","label":"github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Patch","Vendor Advisory"]},{"url":"https://github.com/coder/agentapi/pull/49","label":"github.com/coder/agentapi/pull/49","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Issue Tracking","Patch"]},{"url":"https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149","label":"github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch"]},{"url":"https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding","label":"github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding","hostname":"github.blog","tags":["X Refsource MISC","WEB","Technical Description"]},{"url":"https://github.com/coder/agentapi/releases/tag/v0.4.0","label":"github.com/coder/agentapi/releases/tag/v0.4.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration","label":"mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration","hostname":"mcpsec.dev","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/","label":"mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/","hostname":"mcpsec.dev","tags":["Exploit","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59956","label":"nvd.nist.gov/vuln/detail/CVE-2025-59956","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/coder/agentapi","label":"github.com/coder/agentapi","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3991","label":"pkg.go.dev/vuln/GO-2025-3991","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2025:15666-1","OPENSUSE-SU-2026:21483-1","SUSE-SU-2025:3799-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15666-1","OPENSUSE-SU-2026:21483-1","SUSE-SU-2025:3799-1"]},"timeline":[{"kind":"published","date":"2025-09-29T23:57:08.133Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-09-30T14:14:53.214Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:07:05.658Z","stale":false,"partial":false}}