In August 2025 Cursor published two advisories about its handling of MCP configuration files. CVE-2025-54136 ("MCPoison", found by Check Point) let an attacker swap the command behind an already-approved MCP server in a shared repository without a new prompt; CVE-2025-54135 let a prompt injection make the agent create .cursor/mcp.json and run a command without approval. Either gave code execution with the developer's access to local credentials. Update Cursor to 1.3.9 or later and review .cursor/ changes in shared repositories.
| Disclosed | August 1, 2025 |
|---|---|
| Affected | Cursor |
| Type | AI agent |
| Status | Resolved |
| CVE | CVE-2025-54136, CVE-2025-54135 |
What was exposed
No exploitation in the wild was reported; these are vulnerabilities that put credentials at risk. Both flaws end in arbitrary commands running in the developer's user context, either every time the project opens (MCPoison) or as soon as the agent follows injected instructions. Check Point notes that developer machines often hold cloud credentials and source-code access. In practice that means API keys in MCP configs and .env files, SSH keys, cloud CLI profiles, GitHub tokens and anything else the user can read. Cursor tied MCP approval to the server's name rather than its command, so a harmless entry approved once could later be changed to a malicious one.
Am I affected?
You are affected by CVE-2025-54136 if you used Cursor 1.2.4 or earlier (NVD's range) on a repository whose .cursor/ MCP configuration can be changed by others, such as a shared GitHub repository with collaborators. You are affected by CVE-2025-54135 if you used Cursor below 1.3.9 (NVD's range; the fix is 1.3.9) and let the agent process untrusted content (web pages, issues, messages from MCP tools) in a workspace with no .cursor/mcp.json. Check your Cursor version under About, and review the git history of .cursor/ files in projects you share.
What to do now
- Update Cursor to 1.3.9 or later, which fixes both issues.
- Review the history of
.cursor/mcp.jsonand other MCP config files in shared repositories for commands you did not approve, and protect those paths with code-owner review. - If you find an unexpected command, treat the machine as compromised and rotate the credentials it held, including API keys in MCP configs, GitHub tokens, SSH keys and cloud credentials.
- Keep API keys out of committed MCP configuration; reference environment variables or a secret store instead.
Keys to rotate
Guides to the credentials this incident put at risk:
Timeline
- Check Point Research reports the MCP re-approval bypass to Cursor. Source
- Cursor releases version 1.3, which Check Point's testing shows asks for approval again whenever an MCP entry changes. Source
- Cursor publishes GHSA-24mc-g4xr-4395 (CVE-2025-54136, CVSS 7.2), fixed in 1.3. Source
- Cursor publishes GHSA-4cxx-hrm3-49rm (CVE-2025-54135, CVSS 8.5): the agent could create MCP-sensitive dotfiles without approval; fixed in 1.3.9. Source
- Check Point publishes its MCPoison write-up, including a proof of concept that opens a persistent reverse shell. Source
Indicators
From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.
- Changes to the
commandorargsof an existing entry in.cursor/mcp.jsonor.cursor/rules/mcp.jsonin a shared repository. - A new
.cursor/mcp.jsoncreated by the agent rather than by a person.
Frequently asked questions
Am I affected by the Cursor incident?
You are affected by CVE-2025-54136 if you used Cursor 1.2.4 or earlier (NVD's range) on a repository whose .cursor/ MCP configuration can be changed by others, such as a shared GitHub repository with collaborators. You are affected by CVE-2025-54135 if you used Cursor below 1.3.9 (NVD's range; the fix is 1.3.9) and let the agent process untrusted content (web pages, issues, messages from MCP tools) in a workspace with no .cursor/mcp.json. Check your Cursor version under About, and review the git history of .cursor/ files in projects you share.
What was exposed in the Cursor incident?
No exploitation in the wild was reported; these are vulnerabilities that put credentials at risk. Both flaws end in arbitrary commands running in the developer's user context, either every time the project opens (MCPoison) or as soon as the agent follows injected instructions. Check Point notes that developer machines often hold cloud credentials and source-code access. In practice that means API keys in MCP configs and .env files, SSH keys, cloud CLI profiles, GitHub tokens and anything else the user can read. Cursor tied MCP approval to the server's name rather than its command, so a harmless entry approved once could later be changed to a malicious one.
Which keys should I rotate?
Rotate any GitHub, AWS (IAM access keys), Anthropic, OpenAI credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.
Other ai agent and mcp incidents
- OpenCode on Windows and WSL ran commands from a malicious MCP server during OAuth sign-in 2026-10-04
- OpenCode server's upgrade endpoint let any webpage install an attacker's npm package 2026-09-24
- Cursor before 3.0: prompt-injected agent could escape its sandbox and run code as the user 2026-06-05
- Claude Code trust dialog could be bypassed with a spoofed git worktree, running repo hooks 2026-04-24
- Claw Chain: four OpenClaw flaws let a foothold read agent secrets and escape the sandbox 2026-04-23
- OpenClaw Control UI sent its gateway token to any gatewayUrl in a link, enabling 1-click RCE 2026-01-31