# CVE-2025-61591: Cursor CLI's Cursor Agent MCP OAuth2 Communication is Vulnerable to Remote Code Execution

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-02)
- Published: 2025-10-03T16:44:54.776Z
- Modified: 2026-10-19T17:10:00.173Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- cursor cursor: <= 1.7
- anysphere cursor: up to 1.7

## References

- <https://github.com/cursor/cursor/security/advisories/GHSA-wj33-264c-j9cq> (vendor-advisory)

## Sources

- CVE List: [CVE-2025-61591](https://www.cve.org/CVERecord?id=CVE-2025-61591), CVE Terms of Use, modified 2025-10-03
- NVD: [CVE-2025-61591](https://nvd.nist.gov/vuln/detail/CVE-2025-61591), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-61591 · Whole record: https://cve.day/CVE-2025-61591.json · Rebuilt by cve.day 2026-11-25T22:59:05.484Z
