| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-53965 |
| Date (index) | 2026-08-19 |
| Affected product (index) | MCP PHP SDK (modelcontextprotocol/php-sdk): HttpTransport SSE buffer exhaustion |
| GHSA ID | GHSA-7m52-jw36-44r3 |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-08-19 |
| Ecosystem | Composer |
| Component | Mcp\Client\Transport\HttpTransport |
| EPSS score | Not yet scored (FIRST EPSS as of indexing) |
| CVSS score | High (GHSA severity; NVD entry pending at indexing) |
| CWE | CWE-770 / CWE-400 |
| Affected versions | >= 0.5.0, < 0.7.1 |
| Fixed versions | 0.7.1 |
| Fix status | Patched |
| Exploit status | Public advisory |
| Notes | Added during 2026-08-25 gap review. Client-side DoS: malicious or compromised remote MCP server can crash PHP clients. |
The HTTP client transport appends each 4 KiB SSE chunk to $this->sseBuffer with no upper bound. The buffer flushes only when an SSE event delimiter ("\n\n") appears. A server (or MITM) streaming delimiter-free data causes unbounded memory growth until PHP memory_limit or OOM.
PHP MCP client using HttpTransport against an untrusted, compromised, or MITM-exposed MCP HTTP/SSE endpoint.
Uncontrolled resource consumption (CWE-770): $this->sseBuffer .= $chunk without length guard in processSSEStream().
Any MCP client built on the official PHP SDK can be remotely crashed by the server it connects to — relevant for agent hosts pulling tools from third-party MCP endpoints.
src/Client/Transport/HttpTransport.php (processSSEStream(), line ~203)Upgrade to mcp/sdk >= 0.7.1, which caps sseBuffer at MAX_SSE_BUFFER_BYTES (8 MiB default) and aborts the stream on overflow.