Advisory

GHSA-w64r-2g3w-w8w4

Also known as: CVE-2025-59956, GO-2025-3991

Summary

Coder AgentAPI exposed user chat history via a DNS rebinding attack

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-09-29 20:40 UTC
Modified
2025-10-23 20:33 UTC

Affected packages and fixes

github.com/coder/agentapi

Go · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences