Cursor CLI ran commands in a cloned repo before the trust prompt

published 2026-08-13

Cursor's command-line agent could run commands from a freshly cloned repository before showing the trust prompt and outside an enabled sandbox. A malicious repository could therefore run code on your machine.

Source: thehackernews.com

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 1796 and your operating system.