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.
CVE-2026-52870
This high-severity CVE scores 7.6 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 7.6
- EG Score
- 7.6(low)
- EPSS
- —
- KEV
- Not listed
Published
July 15, 2026
Last Modified
July 15, 2026
Advisory Details (4)
Auto-updated Jul 15, 2026Experimental task handlers allow any client to access and cancel other clients' tasks · Advisory · modelcontextprotocol/python-sdk · GitHub
https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775v1.27.2
Patch available: modelcontextprotocol/python-sdk v1.27.2
https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2[v1.x] Scope experimental tasks to the session that created them
Patch available: modelcontextprotocol/python-sdk v1.27.2 (PR #2720 merged 2026-05-29)
https://github.com/modelcontextprotocol/python-sdk/pull/2720commit 62137874ff26 (modelcontextprotocol/python-sdk)
Patch available: modelcontextprotocol/python-sdk v1.27.2 (contains commit 62137874ff26)
https://github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 2× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 20:10 UTCEG score recompute
- 2026-07-15 20:09 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-862
Frequently asked(4)
What is CVE-2026-52870?
When was CVE-2026-52870 disclosed?
What is the CVSS score of CVE-2026-52870?
How do I remediate CVE-2026-52870?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-52870
Is Your Infrastructure Affected by CVE-2026-52870?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.