Skip to main content
← All vulnerabilities
CVE-2025-59956GHSA-W64R-2G3W-W8W4GO-2025-3991

AgentAPI exposed user chat history via a DNS rebinding attack

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • coder agentapi

    fixed in 0.4.0

  • github.com/coder/agentapiGo

    fixed in 0.4.0

References 6

GitHub · coder/agentapi

github.blog

mcpsec.dev