HighVulnerability
CVE-2025-54136: Cursor code execution by modifying a trusted MCP configuration file
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2025-54136
- Published
- Record updated
- Fixed in
- The source references a patch, a mitigation or a vendor advisory.
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 30.9%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
Cursor, an AI-assisted code editor, is affected in versions 1.2.4 and below. An attacker who edits an already trusted MCP configuration file, either in a shared GitHub repository or locally on the target's machine, can swap an approved MCP server for a malicious command without any warning or re-prompt, achieving remote and persistent code execution. The attack requires write access to an active branch of a repository containing approved MCP servers, or arbitrary local file-write access.
Mitigation
This is fixed in version 1.3.
Coverage
News, research and other items that mention CVE-2025-54136.
- Critical Cursor Flaws Could Let Prompt Injection Escape Sandbox and Run CommandsThe Hacker News, 2026-07-01
- Amazon Q Developer Flaw Could Let Malicious Repos Run Code via MCP ConfigsThe Hacker News, 2026-06-26
- MCP Auto-Execution: From Git Clone to Cloud Compromise in Amazon Q VS Code ExtensionWiz Research Blog, 2026-06-26
- Anthropic MCP Design Vulnerability Enables RCE, Threatening AI Supply ChainThe Hacker News, 2026-04-20
Topics
Related items
- MediumFake MCP Servers on GitHub Target Claude and Cursor Users with Crypto-Stealing MalwareSimilar attack, The Hacker News
- HighCVE-2026-128877: IBM Langflow OSS 1.0.0 through 1.13.0 agentic MCP endpoint uses an internal client to send requests to the server's own…Similar attack, NVD/CVE Database
- MediumCVE-2026-120038: IBM Langflow OSS credential exposure via attacker-controlled OpenAI base_urlSimilar attack, NVD/CVE Database
- MediumCVE-2026-136957: Sonatype Nexus Repository 3 HuggingFace proxy download token verification flawSimilar attack, NVD/CVE Database
- HighCVE-2026-142134 - Uncontrolled search path element in the workflow linting tools in AWS HealthOmics MCP ServerSimilar attack, AWS Security Bulletins