Skip to main content
← All vulnerabilities
CVE-2025-54136

Cursor's Modification of MCP Server Definitions Bypasses Manual Re-approvals

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.3
3 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

Cursor is a code editor built for programming with AI. In versions 1.2.4 and below, attackers can achieve remote and persistent code execution by modifying an already trusted MCP configuration file inside a shared GitHub repository or editing the file locally on the target's machine. Once a collaborator accepts a harmless MCP, the attacker can silently swap it for a malicious command (e.g., calc.exe) without triggering any warning or re-prompt. If an attacker has write permissions on a user's active branches of a source repository that contains existing MCP servers the user has previously approved, or allows an attacker has arbitrary file-write locally, the attacker can achieve arbitrary code execution. This is fixed in version 1.3.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • cursor cursor

    fixed in 1.3

References 4

GitHub · cursor/cursor

GitHub · GeeksikhSecurity/ai-tool-poisoning-guard

GitHub · PRE5T0/CVE-2025-54136

GitHub · Sushank05/mcp-doorman