{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2025-59956",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2025-09-23T14:33:49.506Z",
        "datePublished": "2025-09-29T23:57:08.133Z",
        "dateUpdated": "2025-09-30T14:14:53.214Z"
    },
    "containers": {
        "cna": {
            "title": "AgentAPI exposed user chat history via a DNS rebinding attack",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-350",
                            "lang": "en",
                            "description": "CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/coder/agentapi/security/advisories/GHSA-w64r-2g3w-w8w4"
                },
                {
                    "name": "https://github.com/coder/agentapi/pull/49",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/coder/agentapi/pull/49"
                },
                {
                    "name": "https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/coder/agentapi/commit/5c425c62447b8a9eac19e9fc5a2eae7f0803f149"
                },
                {
                    "name": "https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.blog/security/application-security/localhost-dangers-cors-and-dns-rebinding"
                },
                {
                    "name": "https://github.com/coder/agentapi/releases/tag/v0.4.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/coder/agentapi/releases/tag/v0.4.0"
                },
                {
                    "name": "https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration"
                }
            ],
            "affected": [
                {
                    "vendor": "coder",
                    "product": "agentapi",
                    "versions": [
                        {
                            "version": "< 0.4.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2025-09-29T23:57:08.133Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-w64r-2g3w-w8w4",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://mcpsec.dev/advisories/2025-09-19-coder-chat-exfiltration/",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2025-09-30T14:14:39.407205Z",
                                "id": "CVE-2025-59956",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2025-09-30T14:14:53.214Z"
                }
            }
        ]
    }
}