CVE-2025-62801 FastMCP vulnerable to windows command injection in FastMCP Cursor installer via server_name

Medium 5.4 Published Updated

An attacker can execute arbitrary OS commands on Windows hosts by manipulating the server_name field in the FastMCP Cursor installer.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-62801?

CVE-2025-62801 is a medium-severity command injection vulnerability in jlowin fastmcp, published on 28 Oct 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

FastMCP is the standard framework for building MCP applications. Versions prior to 2.13.0, a command-injection vulnerability lets any attacker who can influence the server_name field of an MCP execute arbitrary OS commands on Windows hosts that run fastmcp install cursor. This vulnerability is fixed in 2.13.0.

Weakness: CWE-78

Which versions are affected by CVE-2025-62801?

3 open source packages ship an affected version, including fastmcp. It affects 1 product.

PackageAffectedFixed in
fastmcp PyPIAll versions2.13.0
fastmcp PyPIAll versions2.13.0
fastmcp PyPIAll versions2.13.0

Products include Jlowin Fastmcp.

How do I fix CVE-2025-62801?

Upgrade fastmcp to 2.13.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-62801 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62801 exists.

Sources

Also known as GHSA-rj5c-58rq-j5g5, PYSEC-2026-1365, ROOT-APP-PYPI-CVE-2025-62801.

Is CVE-2025-62801 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free