Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-59956 EUVD-2025-31619GHSA-w64r-2g3w-w8w4GO-2025-3991

AgentAPI exposed user chat history via a DNS rebinding attack

Published Sep 29, 2025 · Updated Sep 30, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
coder agentapi < 0.4.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20251023T162509-150000.1.110.1 SUSE-SU-2025:3799-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20251023T162509-1.1 openSUSE-SU-2025:15666-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20251023T162509-150000.1.110.1 SUSE-SU-2025:3799-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/coder/agentapi < 0.4.0 0.4.0 GHSA-w64r-2g3w-w8w4

Advisories 3

References