AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

CursorGHSA-wj33-264c-j9cq

Remote Code Execution in Cursor CLI via Cursor Agent MCP OAuth2 Communication

Cursor

CVE-2025-61591 · Published Oct 2, 2025

High8.8
Fix: upgrade to 2025.09.17-25b418f or later
GitHub advisory

Summary

In the latest version of Cursor Agent CLI, 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.

Impact

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.

Remediation

Fixed the command injection site.

Affected versions

PackageAffectedFixed in
Cursor CLI
Product
< 2025.09.17-25b418f2025.09.17-25b418f
Details and references
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-78

More Cursor advisories

All Cursor