6.5
MEDIUM CVSS 3.1
CVE-2025-59956
AgentAPI exposed user chat history via a DNS rebinding attack
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.

INFO

Published Date :

Sept. 30, 2025, 11:37 a.m.

Last Modified :

Oct. 8, 2025, 3:05 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-59956 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Coder agentapi
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM MITRE-CVE
CVSS 3.1 MEDIUM [email protected]
Solution
Update AgentAPI to version 0.4.0 or later to fix DNS rebinding.
  • Update AgentAPI to version 0.4.0 or later.
  • Host AgentAPI over HTTPS.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-59956 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-59956 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-59956 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Oct. 08, 2025

    Action Type Old Value New Value
    Added CWE CWE-290
    Added CPE Configuration OR *cpe:2.3:a:coder:agentapi:*:*:*:*:*:*:*:* versions up to (excluding) 0.4.0
    Added Reference Type GitHub, Inc.: https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding Types: Technical Description
    Added Reference Type GitHub, Inc.: https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149 Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/coder/agentapi/pull/49 Types: Issue Tracking, Patch
    Added Reference Type GitHub, Inc.: https://github.com/coder/agentapi/releases/tag/v0.4.0 Types: Release Notes
    Added Reference Type GitHub, Inc.: https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4 Types: Patch, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration Types: Exploit, Third Party Advisory
    Added Reference Type CISA-ADP: https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/ Types: Exploit, Third Party Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Sep. 30, 2025

    Action Type Old Value New Value
    Added Reference https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/
  • New CVE Received by [email protected]

    Sep. 30, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
    Added CWE CWE-350
    Added Reference https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding
    Added Reference https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149
    Added Reference https://github.com/coder/agentapi/pull/49
    Added Reference https://github.com/coder/agentapi/releases/tag/v0.4.0
    Added Reference https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4
    Added Reference https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact