Agentapi · Agentapi · CVE-2025-59956
**Name of the Vulnerable Software and Affected Versions**
AgentAPI versions 0.3.3 and below
**Description**
AgentAPI, an HTTP API for Claude Code, Goose, Aider, Gemini, Amp, and Codex, is 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, potentially leading to the unauthorized exfiltration of sensitive user data, including local message history. This message history may contain secret keys, file system contents, and intellectual property. The issue is related to a lack of validation of the `Origin` and `Host` headers.
**Recommendations**
Upgrade to AgentAPI version 0.4.0 or later.