Toutes les vulnérabilités
HIGHAI/LLM

AI-CURSOR-MCPOISON-2025

Cursor · Cursor AI code editor

Résumé

MCPoison (CVE-2025-54136), disclosed by Check Point Research and published August 1, 2025, is a persistent remote-code-execution flaw in the Cursor AI code editor affecting versions 1.2.4 and below, rated CVSS 8.8 by NIST. The root cause is that Cursor binds trust for a Model Context Protocol server to its configuration entry's name rather than to the content of its command, so once a collaborator approves an MCP entry, later edits to that entry's underlying command are treated as already trusted and run without any re-prompt. An attacker who can edit a shared .cursor/mcp.json in a repository, or the file locally, first commits a benign MCP entry to obtain approval, then silently swaps its command for a malicious one; the payload then executes automatically every time the victim opens the project, giving durable code execution on the developer's machine. This makes shared repositories a software-supply-chain vector for IP theft and host compromise. It is distinct from CurXecute (CVE-2025-54135), which uses live prompt injection to rewrite mcp.json; MCPoison abuses trust-by-name persistence after legitimate approval. Cursor fixed it in version 1.3 by re-validating modified MCP configurations.

Comment l’éviter dans votre code

  • Upgrade Cursor to version 1.3 or later, which re-prompts on any change to an approved MCP configuration.
  • Pin and review .cursor/mcp.json in version control; require code review on every change to MCP entries.
  • Never approve MCP servers from untrusted or externally writable repositories.
  • Sandbox the editor and require approval before the agent runs MCP/shell commands.
  • Monitor for silent post-approval edits to MCP command fields in shared projects.

Références

Vulnérabilités liées

Tout AI/LLM →