Intel

AIKIDO-2026-535246

fastmcp-slim is vulnerable to Denial of Service (DoS)

Denial of Service (DoS) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published 5 days ago

35

Low Risk

This Affects:

PYTHONfastmcp-slim
3.3.0 - 3.3.1
Fixed in 3.4.0
Are you affected? Scan for Free

TL;DR

The experimental CodeMode transform runs LLM-generated Python in a MontySandboxProvider sandbox and exposes an execute tool that can chain call_tool() calls. Before the fix, CodeMode() and MontySandboxProvider() defaulted to uncapped execution time, memory, and per-execution tool calls, so a single request could run indefinitely or fan out into unbounded backend work. Cancelled client connections could also leave sandbox threads running after the caller disconnected. The patch applies conservative default sandbox limits, caps tool calls per execute block, and cancels the sandbox future when the surrounding task is cancelled.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and expose the experimental CodeMode transform on an MCP server reachable by untrusted or LLM-driven clients.

Background info

fastmcp-slim is vulnerable to Denial of Service (DoS) in versions 3.3.0 - 3.3.1.

How to fix this

Upgrade the fastmcp-slim library to the patch version.