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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-07-15 · Modified: 2026-07-16
- Aliases: GHSA-hvrp-rf83-w775, PYSEC-2026-3481, CGA-6564-5qgc-78cq, CGA-rrrm-8fwv-x7w3, CGA-7p4p-5826-2ghx, CGA-7q97-jm4v-p25r, CGA-cg57-p35r-c8xj
- Record: https://cvemate.com/vulnerability/CVE-2026-52870 · JSON: https://cvemate.com/vulnerability/CVE-2026-52870/json

## 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.
```

## Signals

- CVSS: 7.6 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L
- EPSS: 0.236%, percentile 15.632%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard kserve-huggingfaceserver-cuda-13.3 (Chainguard): All versions (No fix recorded) \| \< 0.21.0-r4
- chainguard litellm (Chainguard): \< 1.93.0-r0 \| \< 1.91.2-r2
- chainguard semgrep (Chainguard): \< 1.172.0-r1
- wolfi semgrep (Wolfi): \< 1.172.0-r1
- lfprojects mcp\_python\_sdk: ≥ 1.23.0, \< 1.27.2
- modelcontextprotocol python-sdk: ≥ 1.23.0, \< 1.27.2
- PyPI mcp (PyPI): ≥ 1.23.0, \< 1.27.2

## References

- <https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775>
- <https://github.com/modelcontextprotocol/python-sdk/pull/2720>
- <https://github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7>
- <https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52870>
- <https://github.com/modelcontextprotocol/python-sdk>
- <https://pypi.org/project/mcp>
- <https://github.com/advisories/GHSA-hvrp-rf83-w775>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52870.json>

---

Data as of 2026-12-05T04:58:33.721Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
