---
schema_version: '1.0'
id: security-20260705-5e93b4
url: https://osv.dev/vulnerability/GHSA-rj5c-58rq-j5g5
url_hash: 5e93b4f3d5446f23d8297269812fd26ae45a596892f6b6deb001177862e7687a
canonical_url: https://osv.dev/vulnerability/GHSA-rj5c-58rq-j5g5
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-62801
- GHSA-rj5c-58rq-j5g5
- severity:CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- fastmcp
- PyPI
lang: en
published_at: '2025-10-29T15:39:03Z'
fetched_at: '2026-07-05T15:34:34Z'
updated_at: '2026-07-11T06:37:45Z'
status: published
content_hash: 6675e03b7f1526b8d4927c3fafd84f11f3a56d405ab94a3598fcfea21ce1ab17
license_note: full
summary: FastMCP vulnerable to windows command injection in FastMCP Cursor installer
  via server_name
summary_source: rss
summary_en: FastMCP vulnerable to windows command injection in FastMCP Cursor installer
  via server_name
entities:
- name: Windows
  type: artifact
- name: Command and Conquer Generals
  type: artifact
related_auto:
- name: Total_War_EMPIRE_Definitive_Edition
  type: content
  weight: 1.0
title: 'CVE-2025-62801: FastMCP vulnerable to windows command injection in FastMCP
  Cursor installer via server_name'
---

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

## TL;DR
FastMCP vulnerable to windows command injection in FastMCP Cursor installer via server_name

## Key Points
- cve / CVE-2025-62801 / GHSA-rj5c-58rq-j5g5 / severity:CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N / fastmcp / PyPI

## Details
**Severity:** CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
**Advisory:** GHSA-rj5c-58rq-j5g5 (CVE-2025-62801)

**Affected (your watchlist):**
- `PyPI:fastmcp` 2.11.3 → fixed in 2.13.0 [docker/docker-portal+portal]

**Details:**
### Summary
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

### Details
1. generate_cursor_deeplink(server_name, …) embeds server_name verbatim in a cursor://…?name= query string.
2. open_deeplink() is invoked with shell=True only on Windows. That calls cmd.exe /c start <deeplink>.
3. Any cmd metacharacter inside server_name (&, |, >, ^, …) escapes the start command and spawns an attacker-chosen process.

### PoC
server.py 
```

import random
from fastmcp import FastMCP

mcp = FastMCP(name="test&calc")

@mcp.tool
def roll_dice(n_dice: int) -> list[int]:
    """Roll `n_dice` 6-sided dice and return the results."""
    return [random.randint(1, 6) for _ in range(n_dice)]

if __name__ == "__main__":
    mcp.run()
```

then run in the terminal:
`fastmcp install cursor server.py`

### Impact
OS Command / Shell Injection (CWE-78)
Every Windows host that runs fastmcp install cursor is at risk. Developers on their local workstations, CI/CD agents and corporate build machines alike.

**References:**
- https://github.com/jlowin/fastmcp/security/advisories/GHSA-rj5c-58rq-j5g5
- https://nvd.nist.gov/vuln/detail/CVE-2025-62801
- https://github.com/jlowin/fastmcp

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-rj5c-58rq-j5g5_

## Source
元記事: [CVE-2025-62801: FastMCP vulnerable to windows command injection in FastMCP Cursor installer via server_name](https://osv.dev/vulnerability/GHSA-rj5c-58rq-j5g5) — published 2025-10-29T15:39:03Z
