Skip to content
Heist/ feed
Back to feed
Medium

AgentAPI exposed user chat history via a DNS rebinding attack

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-59956
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:46 UTC · Revision 1

Source evidence

AgentAPI exposed user chat history via a DNS rebinding attack

core-osv · Original source

Published 29 Sept 2025, 23:57 UTC

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.

osv:CVE-2025-59956
Complete source record
{
  "id": "672f0a664e99f5f2507d394519023932b47525b317ebb3e1107fdf03b665c979",
  "url": "https://osv.dev/vulnerability/CVE-2025-59956",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "AgentAPI exposed user chat history via a DNS rebinding attack",
    "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.",
    "evidence": "osv:CVE-2025-59956",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-59956",
      "aliases": [
        "CVE-2025-59956",
        "GHSA-w64r-2g3w-w8w4",
        "GO-2025-3991"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/coder/agentapi",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "88f64c8dfb3e19b46624b95ed19560f36c93e52e"
                },
                {
                  "fixed": "5c425c62447b8a9eac19e9fc5a2eae7f0803f149"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:coder:agentapi:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.4.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5c425c62447b8a9eac19e9fc5a2eae7f0803f149"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "88f64c8dfb3e19b46624b95ed19560f36c93e52e"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.4.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.3.3",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.2.3",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "preview",
            "v0.1.0",
            "v0.1.0-pre1",
            "v0.1.0-pre0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-59956.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.097527352Z",
      "provider": "osv",
      "references": [
        "https://github.com/coder/agentapi/releases/tag/v0.4.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59956.json",
        "https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4",
        "https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-59956",
        "https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149",
        "https://github.com/coder/agentapi/pull/49",
        "https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding",
        "https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-350"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59956.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-59956",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494647,
  "published_at": "2025-09-29T23:57:08.133+00:00"
}