Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp
  4. ›
  5. CVE-2026-52870

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

July 16, 2026

In affected versions, the default request handlers installed by the experimental tasks feature (server.experimental.enable_tasks()) did not check which session created a task before acting on it. On a server with more than one connected client, any client could observe, read results from, and cancel tasks belonging to other clients.

References

  • github.com/advisories/GHSA-hvrp-rf83-w775
  • github.com/modelcontextprotocol/python-sdk/commit/62137874ff26dd74d2fea80ff528a7fd9ca7a5e7
  • github.com/modelcontextprotocol/python-sdk/pull/2720
  • github.com/modelcontextprotocol/python-sdk/releases/tag/v1.27.2
  • github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-hvrp-rf83-w775
  • nvd.nist.gov/vuln/detail/CVE-2026-52870

Code Behaviors & Features

Detect and mitigate CVE-2026-52870 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.23.0 before 1.27.2

Fixed versions

  • 1.27.2

Solution

Upgrade to version 1.27.2 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-862: Missing Authorization

Source file

pypi/mcp/CVE-2026-52870.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:45 +0000.