github.com/coder/agentapi
Affected
- introduced
0, fixed0.4.0(semver)
Fixed versions
0.4.0
Fix
- Fixed version
0.4.0go get github.com/coder/[email protected]
Advisory
Also known as: CVE-2025-59956, GO-2025-3991
Coder AgentAPI exposed user chat history via a DNS rebinding attack
Summary
AgentAPI prior to version 0.4.0 was susceptible to a client-side DNS rebinding attack when hosted over plain HTTP on localhost.
Impact
An attacker could have gained access to the /messages endpoint served by the Agent API. This allowed for the unauthorized exfiltration of sensitive user data, specifically local message history, which could've included secret keys, file system contents, and intellectual property the user was working on locally.
Remediation
We've implemented an Origin and Host header validating middleware and set a secure by default configuration.
Please upgrade to version 0.4.0 or later.
Credits
We'd like to thank Evan Harris from mcpsec.dev for reporting this issue and following the coordinated disclosure policy.
Medium Basis: The source's own band: MODERATE
0, fixed 0.4.0 (semver)0.4.0
0.4.0go get github.com/coder/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0