{"answers":{"affected":"2 open source packages ship an affected version, including mcp/sdk.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53965 exists.","fix":"Upgrade mcp/sdk to 0.7.1 or later.","what":"CVE-2026-53965 is a medium-severity denial of service vulnerability in modelcontextprotocol php-sdk, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-53965 and fix it if it is affected.\n\nWhat it is: CVE-2026-53965 is a medium-severity denial of service vulnerability in modelcontextprotocol php-sdk, published on 25 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-53965 exists.\n\nAffected packages and fixed versions:\n- mcp/sdk (Packagist): affected from 0.5.0; fixed in 0.7.1\n- mcp/sdk (Packagist): affected from 0.5.0; fixed in 0.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-53965/ (Markdown: https://insights.sbomify.com/CVE-2026-53965/index.md)","id":"CVE-2026-53965","markdown":"https://insights.sbomify.com/CVE-2026-53965/index.md","name":"CVE-2026-53965","record":{"aliases":["GHSA-7m52-jw36-44r3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PHP SDK","requires_auth":"none","summary":"A malicious server can exhaust client memory via unbounded SSE buffering in the MCP PHP SDK, causing denial of service.","user_interaction":"required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"The MCP PHP SDK (Composer package mcp/sdk) is the official Model Context Protocol SDK for PHP. In versions 0.5.0 through 0.7.0, the HTTP client transport reads a Server-Sent Events response stream incrementally and appends each chunk to an in-memory buffer with no upper bound. The buffer is only flushed when an SSE event delimiter, a double newline, is found, so a remote MCP server that streams response bytes without ever sending the delimiter causes the buffer to grow without limit. A malicious, compromised, or man-in-the-middle-controlled server that the client connects to over the HTTP transport can exploit this to exhaust the client process's memory, triggering a fatal allocation error or OS out-of-memory kill and denying service to the MCP client. The issue affects any client using HttpTransport against an untrusted server endpoint and does not require authentication or user interaction beyond initiating the connection. This issue is fixed in version 0.7.1.","ecosystems":["Packagist"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MCP PHP SDK: Unbounded SSE buffer in HttpTransport enables client-side denial of service","id":"CVE-2026-53965","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Packagist","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"XWiki Platform: Privilege escalation from edit to script right through Live Data editing","id":"CVE-2026-53966"},"packages":[{"ecosystem":"Packagist","fixed":["0.7.1"],"introduced":["0.5.0"],"last_affected":[],"package":"mcp/sdk","purl":null,"source":"GHSA-7m52-jw36-44r3"},{"ecosystem":"Packagist","fixed":["0.7.1"],"introduced":["0.5.0"],"last_affected":[],"package":"mcp/sdk","purl":"pkg:composer/mcp/sdk","source":"GHSA-7m52-jw36-44r3"}],"prev":{"headline":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","id":"CVE-2026-53964"},"products":["php-sdk"],"published":"2026-08-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-26","vendors":["modelcontextprotocol"]},"summary":"A malicious server can exhaust client memory via unbounded SSE buffering in the MCP PHP SDK, causing denial of service.","url":"https://insights.sbomify.com/CVE-2026-53965/"}