CVE-2026-52870
HIGH 7.6CVSS 3.1MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks
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.
- Published
- 15 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-862
- Also known as
- GHSA-hvrp-rf83-w775PYSEC-2026-3481
- Sources
- NVDJSONOSV GHSA-hvrp-rf83-w775JSONOSV PYSEC-2026-3481JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | HIGH 7.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | lfprojects | mcp_python_sdkcpe:2.3:a:lfprojects:mcp_python_sdk:*:*:*:*:*:*:*:* |
>= 1.23.0, < 1.27.2 | 1.27.2 |
| OSV | PyPI | mcp | >= 1.23.0, < 1.27.2 | 1.27.2 |
References
- https://github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7 · Patch, WEB
- https://github.com/modelcontextprotocol/python-sdk/pull/2720 · Issue Tracking, Patch, WEB
- https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2 · Release Notes, WEB
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-52870 · ADVISORY
- https://github.com/modelcontextprotocol/python-sdk · PACKAGE
- https://pypi.org/project/mcp · PACKAGE
- https://github.com/advisories/GHSA-hvrp-rf83-w775 · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Jul 2026)