Skip to content
MediumVulnerability

CVE-2026-53965: MCP PHP SDK unbounded SSE buffer memory exhaustion in HTTP transport

Identifier
CVE-2026-53965
Published
Record updated
View JSON

Summary

CVE-2026-53965 affects the MCP PHP SDK (Composer package mcp/sdk) in versions 0.5.0 through 0.7.0. The HTTP client transport appends Server-Sent Events response data to an in-memory buffer without an upper bound, flushing it only when a double-newline delimiter arrives. A remote server that streams bytes without ever sending the delimiter can exhaust the client process's memory, causing a fatal allocation error or OS out-of-memory kill and denying service to the MCP client. The issue requires no authentication or user interaction beyond connecting to an untrusted server endpoint via HttpTransport.

Mitigation

Fixed in 0.7.1.