Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. mcp/sdk
  4. ›
  5. CVE-2026-53965

CVE-2026-53965: MCP PHP SDK: client HttpTransport SSE buffer (sseBuffer .= chunk) grows unbounded when server withholds the event delimiter

August 19, 2026 (updated September 1, 2026)

The HTTP client transport in mcp/sdk reads a Server-Sent-Events (SSE) response stream incrementally and appends each 4 KiB chunk to an in-memory buffer ($this->sseBuffer .= $chunk;) with no upper bound. The buffer is only ever flushed when an SSE event delimiter ("\n\n") appears. A remote MCP server (the peer the client connects to) that streams response bytes without ever sending the "\n\n" delimiter makes $sseBuffer grow without limit until the client process exhausts its PHP memory_limit (fatal “Allowed memory size … exhausted”) or is killed by the OS OOM-killer.

This is a denial-of-service against the MCP client: any server it talks to — or a network position that controls the server’s response body — can crash the client by withholding the event delimiter while streaming data.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/mcp/sdk/CVE-2026-53965.yaml
  • github.com/advisories/GHSA-7m52-jw36-44r3
  • github.com/modelcontextprotocol/php-sdk/releases/tag/v0.7.1
  • github.com/modelcontextprotocol/php-sdk/security/advisories/GHSA-7m52-jw36-44r3
  • nvd.nist.gov/vuln/detail/CVE-2026-53965

Code Behaviors & Features

Detect and mitigate CVE-2026-53965 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.5.0 before 0.7.1

Fixed versions

  • 0.7.1

Solution

Upgrade to version 0.7.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

packagist/mcp/sdk/CVE-2026-53965.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:19 +0000.