{"answers":{"affected":"3 open source packages ship an affected version, including github.com/coder/agentapi. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59956 exists.","fix":"Upgrade github.com/coder/agentapi to 0.4.0 or later.","what":"CVE-2025-59956 is a medium-severity server-side request forgery vulnerability in coder agentapi, published on 29 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-59956 and fix it if it is affected.\n\nWhat it is: CVE-2025-59956 is a medium-severity server-side request forgery vulnerability in coder agentapi, published on 29 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59956 exists.\n\nAffected packages and fixed versions:\n- github.com/coder/agentapi (Go): affected all versions; fixed in 0.4.0\n- github.com/coder/agentapi (Go): affected all versions; fixed in 0.4.0\n- github.com/coder/agentapi (Go): affected all versions; fixed in 0.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-59956/ (Markdown: https://insights.sbomify.com/CVE-2025-59956/index.md)","id":"CVE-2025-59956","markdown":"https://insights.sbomify.com/CVE-2025-59956/index.md","name":"CVE-2025-59956","record":{"aliases":["GHSA-w64r-2g3w-w8w4","GO-2025-3991"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"AI coding agent API","requires_auth":"none","summary":"Attackers can exfiltrate sensitive local chat history and secrets from AgentAPI via DNS rebinding when hosted on plain HTTP localhost.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"agentapi","vendor":"coder"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"},{"id":"CWE-350","name":"Reliance on Reverse DNS Resolution for a Security-Critical Action"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"AgentAPI exposed user chat history via a DNS rebinding attack","id":"CVE-2025-59956","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":3,"n_references":6,"next":{"headline":"Junos OS: EX4600 Series and QFX5000 Series: An attacker with physical access can open a persistent backdoor","id":"CVE-2025-59957"},"packages":[{"ecosystem":"Go","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/agentapi","purl":null,"source":"GHSA-w64r-2g3w-w8w4"},{"ecosystem":"Go","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/agentapi","purl":"pkg:golang/github.com/coder/agentapi","source":"GHSA-w64r-2g3w-w8w4"},{"ecosystem":"Go","fixed":["0.4.0"],"introduced":["0"],"last_affected":[],"package":"github.com/coder/agentapi","purl":"pkg:golang/github.com/coder/agentapi","source":"GO-2025-3991"}],"prev":{"headline":"Coolify leaksensitive information `email_change_code` in `/api/v1/teams/{team_id | current}/members` API endpoint","id":"CVE-2025-59955"},"products":["agentapi"],"published":"2025-09-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-30","vendors":["coder"]},"summary":"Attackers can exfiltrate sensitive local chat history and secrets from AgentAPI via DNS rebinding when hosted on plain HTTP localhost.","url":"https://insights.sbomify.com/CVE-2025-59956/"}