mcp-cve-project

CVE-2025-61591 | Cursor (MCP OAuth with untrusted MCP server) | High | 8.8

CVE Information

Field Value
CVE / NVD CVE-2025-61591
Date (index) 2025-10-28
Affected product (index) Cursor (MCP OAuth with untrusted MCP server)
GHSA ID GHSA-wj33-264c-j9cq
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2025-10-28
Ecosystem Application (vendor product)
Component Cursor (MCP OAuth with untrusted MCP server)
EPSS score 0.010940000 (FIRST EPSS, 2026-06-30)
CVSS score 8.8 HIGH CVSS v3.1 (NVD)
CWE CWE-78
Affected versions cursor <= 1.7
Fixed versions No fixed version listed in NVD/GitHub advisory
Fix status Unfixed
Exploit status Public CVE record
Notes Indexed from 2026-05-29 gap review backlog. Re-check NVD before compliance reporting.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Exposure depends on deployment: network reachability, ability to influence MCP configuration or tool arguments, and whether the MCP server/client runs with access to sensitive host resources, credentials, or internal networks.

CVE is because of what bug?

Confirm exact weakness in the NVD record and linked advisory. Primary CWE mapping: CWE-78.

MCP-specific impact / why it matters

MCP clients and servers bridge model-driven workflows to privileged tools and local execution. Weaknesses in auth, transport trust, or command handling can let untrusted content or users reach host execution, data exfiltration, or unauthorized tool invocation.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory diff.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP components to trusted users and networks; validate tool inputs; run with least privilege.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

Public advisories exist; do not host weaponized payloads in this repository.

Detection / verification

Patch

See NVD references and vendor release notes for CVE-2025-61591.