CVE-2026-52870: MCP Python SDK · Experimental task handlers allow any client to access and cancel other clients' tasks
Affects snyk-agent-scanSource GCVE Database
Not known to be exploited · CVSS 7.6 High : upgrade to 0.5.17 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 32% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.17
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 15 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade snyk-agent-scan to 0.5.17.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsnyk-agent-scanpkg:brew/snyk-agent-scanOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in version 1.27.2 or later, which adds session ownership validation by embedding a per-session marker in task IDs and restricting default handlers to only operate on tasks belonging to the requesting session. Servers should upgrade to this version to remediate the vulnerability. Alternatively, keep the experimental tasks feature disabled or implement custom task handlers that validate session ownership before acting on tasks. No other mitigation is required if the feature is not enabled.
Description
The MCP Python SDK's experimental task handlers feature, when enabled, does not verify session ownership of tasks. This allows any connected client to list, read results from, and cancel tasks created by other clients on the same server. The vulnerability affects servers that enable the experimental tasks feature and use default handlers without session validation. It is fixed in version 1.27.2 and later, which embed session markers in task IDs and restrict task access to the owning session.
References
- github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-52870 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/pull/2720 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7 (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk (opens in a new tab)
- github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2 (opens in a new tab)