All vulnerabilities
HIGHAI/LLM

CVE-2025-54135

Cursor · Cursor AI code editor

Summary

Aim Labs disclosed CurXecute (CVE-2025-54135, CVSS 8.6), a remote-code-execution flaw in the Cursor AI code editor reachable through prompt injection. Because Cursor runs with developer-level privileges and supports the Model Context Protocol, untrusted external data pulled in by an MCP server (for example a crafted Slack message) can redirect the agent's control flow and rewrite the global mcp.json configuration to execute arbitrary commands. Potential consequences include data exfiltration, ransomware deployment, and dependency-poisoning; it was patched in Cursor 1.3 on July 29, 2025.

How to avoid it in your code

  • Upgrade Cursor to version 1.3 or later to apply the CurXecute fix.
  • Disable MCP auto-start; require human approval before agents execute commands or edit mcp.json.
  • Treat MCP-sourced external data (Slack, web) as untrusted data, not instructions.
  • Run the editor/agent with least privilege and an egress allow-list; vet and pin MCP servers.
  • Make mcp.json and config files write-protected from agent-driven changes.

References

Related vulnerabilities

All AI/LLM →