CVE-2025-61591CWE-78command-injection

CVE-2025-61591

High · published October 3, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
66.8
In the wild
Unconfirmed
What it is

Cursor is a code editor built for programming with AI. In versions 1.7 and below, when MCP uses OAuth authentication with an untrusted MCP server, an attacker can impersonate a malicious MCP server and return crafted, maliciously injected commands during the interaction process, leading to command injection and potential remote code execution. If chained with an untrusted MCP service via OAuth, this command injection vulnerability could allow arbitrary code execution on the host by the agent. This can then be used to directly compromise the system by executing malicious commands with full user privileges. This issue does not currently have a fixed release version, but there is a patch, 2025.09.17-25b418f.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01159 · 66.8th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-10-03T21:15Z
Affected products (1)
ProductVersionsFixed in
anysphere/cursor≤ 1.7—
References (1)
EPSS history
Timeline
  • 03 OCT 16:44Z
    Cursor CLI's Cursor Agent MCP OAuth2 Communication is Vulnerable to Remote Code Execution
    cvelistv5