Skip to main content
EPSS 0.6%top 52%

CVE-2026-53965: CWE-400: Uncontrolled Resource Consumption in modelcontextprotocol php-sdk

0
Medium
VulnerabilityCVE-2026-53965cvecve-2026-53965cwe-400cwe-770
Published: 08/25/2026 (08/25/2026, 20:36:55 UTC)
Source: CVE Database V5
Vendor/Project: modelcontextprotocol
Product: php-sdk

Description

CVE-2026-53965 is a medium severity vulnerability in the Model Context Protocol PHP SDK (mcp/sdk) versions 0.5.0 through 0.7.0. The HTTP client transport reads Server-Sent Events (SSE) streams into an unbounded in-memory buffer, which only flushes upon receiving a double newline delimiter. A malicious or compromised server that never sends this delimiter can cause the buffer to grow indefinitely, exhausting client memory and causing a denial of service. This affects any client using HttpTransport against an untrusted server and requires no authentication or user interaction beyond connection initiation. The issue is fixed in version 0.7.1.

CVSS v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected software

modelcontextprotocol

php-sdk

Affected versions
>=0.5.0 <0.7.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 12:40:57 UTC

Technical Analysis

The MCP PHP SDK's HTTP client transport component incrementally reads SSE response streams and appends each chunk to an in-memory buffer without an upper bound. The buffer flushes only when a double newline delimiter is received. If a remote server streams bytes without sending this delimiter, the buffer grows without limit, leading to uncontrolled resource consumption (CWE-400) and potential denial of service due to memory exhaustion. This vulnerability affects versions 0.5.0 through 0.7.0 of the SDK. Exploitation requires only initiating a connection to a malicious or compromised server endpoint over HTTP. The issue is resolved in version 0.7.1.

Potential Impact

An attacker controlling or compromising a remote MCP server can cause the client process to exhaust its memory by streaming SSE response bytes without the required delimiter. This results in a fatal allocation error or the operating system terminating the client process due to out-of-memory conditions, causing denial of service to the MCP client. No authentication or user interaction is required beyond establishing the connection.

Mitigation Recommendations

Upgrade the MCP PHP SDK to version 0.7.1 or later, where this uncontrolled resource consumption issue is fixed. Until upgrading, avoid connecting the HttpTransport client to untrusted or potentially malicious servers. Patch status is confirmed fixed in version 0.7.1.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-11T15:50:01.282Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a8e009bacd9273b49b2f917

Added to database: 08/25/2026, 20:52:43 UTC

Last enriched: 09/10/2026, 12:40:57 UTC

Last updated: 10/08/2026, 18:48:46 UTC

Views: 62

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses