{"answers":{"affected":"4 open source packages ship an affected version, including mcp.","exploited":"There is no known exploitation of CVE-2026-59951 in the wild and no public exploit code.","fix":"Upgrade mcp to a fixed version for your release line: 1.30.0 or 2.2.0.","what":"CVE-2026-59951 is a medium-severity denial of service vulnerability in modelcontextprotocol python-sdk, published on 14 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-59951 and fix it if it is affected.\n\nWhat it is: CVE-2026-59951 is a medium-severity denial of service vulnerability in modelcontextprotocol python-sdk, published on 14 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-59951 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mcp (PyPI): affected from 1.8.0; fixed in 1.30.0\n- mcp (PyPI): affected from 1.8.0; fixed in 1.30.0\n- mcp (PyPI): affected from 2.0.0; fixed in 2.2.0\n- mcp (PyPI): affected from 2.0.0; fixed in 2.2.0\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-59951/ (Markdown: https://insights.sbomify.com/CVE-2026-59951/index.md)","id":"CVE-2026-59951","markdown":"https://insights.sbomify.com/CVE-2026-59951/index.md","name":"CVE-2026-59951","record":{"aliases":["ECHO-4e93-dae6-642f","GHSA-84m7-p3x7-pcfv","MINI-2352-675j-3jpr","MINI-2m9m-qvmr-jvg6","MINI-37p3-mq97-9qc9","MINI-53r2-p5q2-75gq","MINI-6ghv-ph7r-7v5v","MINI-73pm-qw4c-7jp2","MINI-78cq-jvf5-p4cm","MINI-7m33-c285-mh4g","MINI-f2ph-c9h7-rhq9","MINI-fr3x-32qq-2xc3","MINI-gv96-5cm7-w7v8","MINI-gvpw-chfx-68f5","MINI-h84g-8h94-f528","MINI-hcc8-wx3f-mjcg","MINI-m683-hp42-6p89","MINI-pxm5-c9jm-r4p7","MINI-rrp2-p96g-gfpp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"MCP Python SDK","requires_auth":"none","summary":"Attackers can exhaust server memory via unbounded session accumulation in stateful Streamable HTTP transports, causing denial of service.","user_interaction":"not_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:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-772","name":"Missing Release of Resource after Effective Lifetime"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). From 1.8.0 until 1.30.0 and 2.2.0, stateful Streamable HTTP servers, including FastMCP, MCPServer, Server.streamable_http_app(), and StreamableHTTPSessionManager, retain session entries without an idle expiration or aggregate session-count limit. DELETE, refused opening requests, and completed sessions do not reliably discard their entries, and each entry can retain parsed initialize parameters. A client that can reach the endpoint can therefore create ordinary short requests that grow server memory without bound until restart. Stateless HTTP, stdio, and SSE transports are not affected. This issue is fixed in versions 1.30.0 and 2.2.0.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource Exhaustion","id":"CVE-2026-59951","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":4,"n_references":7,"next":{"headline":"Valibot: record() issue paths can make flatten() throw for inherited Object property names","id":"CVE-2026-59952"},"packages":[{"ecosystem":"PyPI","fixed":["1.30.0"],"introduced":["1.8.0"],"last_affected":[],"package":"mcp","purl":null,"source":"GHSA-84m7-p3x7-pcfv"},{"ecosystem":"PyPI","fixed":["1.30.0"],"introduced":["1.8.0"],"last_affected":[],"package":"mcp","purl":"pkg:pypi/mcp","source":"GHSA-84m7-p3x7-pcfv"},{"ecosystem":"PyPI","fixed":["2.2.0"],"introduced":["2.0.0"],"last_affected":[],"package":"mcp","purl":null,"source":"GHSA-84m7-p3x7-pcfv"},{"ecosystem":"PyPI","fixed":["2.2.0"],"introduced":["2.0.0"],"last_affected":[],"package":"mcp","purl":"pkg:pypi/mcp","source":"GHSA-84m7-p3x7-pcfv"}],"prev":{"headline":"MCP Python SDK: WebSocket server transport does not support Host/Origin validation","id":"CVE-2026-59950"},"products":["python-sdk"],"published":"2026-10-14","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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-15","vendors":["modelcontextprotocol"]},"summary":"Attackers can exhaust server memory via unbounded session accumulation in stateful Streamable HTTP transports, causing denial of service.","url":"https://insights.sbomify.com/CVE-2026-59951/"}