# CVE-2026-52870: MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasks

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-07-15T20:07:53.500Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-hvrp-rf83-w775, PYSEC-2026-3481
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- modelcontextprotocol python-sdk: >= 1.23.0, < 1.27.2
- mcp (PyPI): from 1.23.0 before 1.27.2
- lfprojects mcp_python_sdk: from 1.23.0 before 1.27.2

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L`

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775> (vendor-advisory, web)
- <https://github.com/modelcontextprotocol/python-sdk/pull/2720> (issue-tracking, patch, web)
- <https://github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7> (patch, web)
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2> (release-notes, 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)

## Sources

- CVE List: [CVE-2026-52870](https://www.cve.org/CVERecord?id=CVE-2026-52870), CVE Terms of Use, modified 2026-07-16
- GitHub Advisory Database: [GHSA-hvrp-rf83-w775](https://github.com/advisories/GHSA-hvrp-rf83-w775), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-52870](https://nvd.nist.gov/vuln/detail/CVE-2026-52870), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3481](https://osv.dev/vulnerability/PYSEC-2026-3481), CC-BY-4.0, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-52870 · Whole record: https://cve.day/CVE-2026-52870.json · Rebuilt by cve.day 2026-11-25T22:59:28.340Z
