Missing Release of Resource after Effective Lifetime Affecting mcp package, versions [1.8.0,1.30.0)[2.0.0,2.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Release of Resource after Effective Lifetime vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MCP-21185889
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditNikhil Kumar, evilgensec, Madan301

Introduced: 15 Oct 2026

NewCVE-2026-59951  (opens in a new tab)
CWE-770  (opens in a new tab)
CWE-772  (opens in a new tab)

How to fix?

Upgrade mcp to version 1.30.0, 2.2.0 or higher.

Overview

mcp is a Model Context Protocol SDK

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime via StreamableHTTPSessionManager in streamable_http_manager.py, which prior to this fix neither expired idle stateful sessions nor capped the number of concurrent sessions. An unauthenticated remote attacker can open an unbounded number of Streamable HTTP sessions and hold them open indefinitely, exhausting server memory and causing a crash.

CVSS Base Scores

version 4.0
version 3.1