Live threats

All CVEs / Coder

CVE-2025-59956Coder Agentapi

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
—
Auth required
No
Published
Sep 30, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-350, CWE-290
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Agentapi.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/coder/agentapi < 0.4.0 0.4.0 go get github.com/coder/agentapi@v0.4.0
Go github.com/coder/agentapi < 0.4.0 0.4.0 go get github.com/coder/agentapi@v0.4.0

Per OSV / GitHub Advisories (GHSA-w64r-2g3w-w8w4, GO-2025-3991). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
coderagentapi< 0.4.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.