{"id":"CVE-2025-62801","aliases":["CVE-2025-62801","GHSA-rj5c-58rq-j5g5","PYSEC-2026-1365"],"related":[],"kind":"vulnerability","state":"published","title":"FastMCP vulnerable to windows command injection in FastMCP Cursor installer via server_name","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nA 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\n\n### Details\n1. generate_cursor_deeplink(server_name, …) embeds server_name verbatim in a cursor://…?name= query string.\n2. open_deeplink() is invoked with shell=True only on Windows. That calls cmd.exe /c start <deeplink>.\n3. Any cmd metacharacter inside server_name (&, |, >, ^, …) escapes the start command and spawns an attacker-chosen process.\n\n### PoC\nserver.py \n```\n\nimport random\nfrom fastmcp import FastMCP\n\nmcp = FastMCP(name=\"test&calc\")\n\n@mcp.tool\ndef roll_dice(n_dice: int) -> list[int]:\n    \"\"\"Roll `n_dice` 6-sided dice and return the results.\"\"\"\n    return [random.randint(1, 6) for _ in range(n_dice)]\n\nif __name__ == \"__main__\":\n    mcp.run()\n```\n\nthen run in the terminal:\n`fastmcp install cursor server.py`\n\n### Impact\nOS Command / Shell Injection (CWE-78)\nEvery Windows host that runs fastmcp install cursor is at risk. Developers on their local workstations, CI/CD agents and corporate build machines alike.","format":"markdown","source":"ghsa"},{"lang":"es","text":"FastMCP es el framework estándar para construir aplicaciones MCP. Versiones anteriores a la 2.13.0, una vulnerabilidad de inyección de comandos permite a cualquier atacante que pueda influir en el campo server_name de un MCP ejecutar comandos arbitrarios del sistema operativo en hosts Windows que ejecutan fastmcp install cursor. Esta vulnerabilidad está corregida en la 2.13.0.","source":"nvd"}],"published":"2025-10-28T21:36:41.167Z","modified":"2026-10-08T11:10:00.250Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-78"],"affected":[{"ranges":[{"version":"< 2.13.0","status":"affected"}],"vendor":"jlowin","product":"fastmcp","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.13.0"}],"ecosystem":"PyPI","package":"fastmcp","purl":"pkg:pypi/fastmcp","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.13.0"}],"vendor":"jlowin","product":"fastmcp","cpe":"cpe:2.3:a:jlowin:fastmcp:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.13.0"}],"ecosystem":"PyPI","package":"fastmcp","purl":"pkg:pypi/fastmcp","source":"pysec"}],"references":[{"url":"https://github.com/jlowin/fastmcp/security/advisories/GHSA-rj5c-58rq-j5g5","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62801","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/jlowin/fastmcp","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/fastmcp","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-rj5c-58rq-j5g5","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-10-29T14:54:52.707Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-62801","url":"https://www.cve.org/CVERecord?id=CVE-2025-62801","licence":"CVE Terms of Use","modified":"2025-10-29T14:54:56.687Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rj5c-58rq-j5g5","url":"https://github.com/advisories/GHSA-rj5c-58rq-j5g5","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:56.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-62801","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-62801","licence":"Public domain","modified":"2026-10-08T11:10:00.250Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1365","url":"https://osv.dev/vulnerability/PYSEC-2026-1365","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:12.941Z"}],"updatedAt":"2026-11-25T22:59:06.974Z","epss":{"score":0.00233,"percentile":0.15116,"date":"2026-12-02T12:00:21.000Z"}}