{"id":"CVE-2026-52870","published":"2026-07-15T20:07:53Z","modified":"2026-07-16T13:01:40Z","title":"MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks","vendor":"modelcontextprotocol","product":"python-sdk","tier":"tail","description":{"text":"The MCP Python SDK, called mcp on PyPI, is a Python implementation of the Model Context Protocol (MCP). From 1.23.0 until 1.27.2, default handlers installed by server.experimental.enable_tasks() for tasks/list, tasks/get, tasks/result, and tasks/cancel operate only on task identifiers without recording the session that created each task, allowing any connected client to enumerate, read results from, consume messages for, or cancel other clients' tasks. This issue is fixed in version 1.27.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00388,"percentile":0.33782,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/pull/2720","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7","tags":["x_refsource_MISC"]},{"url":"https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.76},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"modelcontextprotocol","affectedVersions":[{"vendor":"modelcontextprotocol","product":"python-sdk","versions":[">= 1.23.0, < 1.27.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-16T13:01:33.294977Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"mcp","vulnerableRanges":[">=1.23.0, <1.27.2"],"patched":["1.27.2"],"from":["GHSA-hvrp-rf83-w775","PYSEC-2026-3481"],"provenance":"source"}],"summary":{"text":"The MCP Python SDK (the mcp package on PyPI, from modelcontextprotocol's python-sdk) has a missing authorization flaw in the default handlers for experimental tasks, installed by server.experimental.enable_tasks() for the tasks/list, tasks/get, tasks/result and tasks/cancel operations. Because these handlers do not record which session created each task, an attacker who is any connected client can enumerate, read results from, consume messages for, or cancel other clients' tasks, and only needs to be a connected, authenticated client to do so.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:30Z"},"euvd":{"id":"EUVD-2026-44797","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53365","published":"2025-07-04","fixed":"1.10.0","kev":false},{"cve":"CVE-2025-66416","published":"2025-12-02","fixed":"1.23.0","kev":false,"link":{"from":"CVE-2025-66416","to":"CVE-2026-52870","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mcp","fromFixed":"1.23.0","toFixed":"1.27.2","daysApart":225}]}},{"cve":"CVE-2026-52869","published":"2026-07-15","fixed":"1.27.2","kev":false},{"cve":"CVE-2026-52870","published":"2026-07-15","fixed":"1.27.2","kev":false},{"cve":"CVE-2026-59950","published":"2026-07-15","fixed":"1.28.1","kev":false},{"cve":"CVE-2026-115563","published":"2026-11-16","fixed":"2.2.0","kev":false},{"cve":"CVE-2026-116684","published":"2026-10-27","fixed":"2.2.0","kev":false}],"package":"PyPI:mcp"}}