Intel

AIKIDO-2026-404389

mcp is vulnerable to Denial of Service (DoS)

CVE-2026-59951Published Oct 7, 2026
October 7, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

A Streamable HTTP server in the default stateful mode never frees session state. Sessions do not expire, a client DELETE leaves the session entry registered, and a session whose first request is refused stays registered with a running task. Each session keeps its parsed initialize payload and there is no cap on the number of sessions, so a client that can reach the endpoint can grow server memory without bound with ordinary short requests, and only a restart frees it. The fix adds an idle session timeout, caps the number of concurrent sessions, and discards a session as soon as it ends.

How do I fix this?

Upgrade the mcp library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you serve MCP over Streamable HTTP in the default stateful mode with clients you do not fully trust.

Package

Versions

1.8.0 - 1.29.1

Fixed in 1.30.0

2.0.0 - 2.1.1

Fixed in 2.2.0

Background info

mcp is vulnerable to Denial of Service (DoS) in versions 1.8.0 - 1.29.1 and 2.0.0 - 2.1.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea