PTS security notes / Questions

Is Cursor's YOLO mode safe?

By PTS · Published December 5, 2026 · Docs checked December 5, 2026

Short answer

Not on a machine that holds real keys. What many people still call YOLO mode is now Run Everything, where Cursor's docs say every tool call runs automatically with no sandbox and no classifier, and even the default Auto-review mode is, in Cursor's words, not a security boundary.

The three run modes

In Cursor's desktop app, go to Settings > Agents > Approvals & Execution. Cursor's docs list three modes (run modes):

ModeWhat runs without askingSandboxClassifier
Auto-reviewAllowlisted calls run immediately. Other shell commands run in the sandbox when possible. Anything that cannot be sandboxed goes to the classifierYes, for shell commandsYes
AllowlistActions on your allowlist. With sandboxing on, supported shell commands can run in the sandboxOptionalNo
Run EverythingEvery tool callNoNo

The docs say to use Run Everything when "You accept the risk and want zero prompts." The older "YOLO mode" name is what people still search for, and it maps to this mode.

Why Run Everything is the risky one

There is no sandbox and no classifier between a bad command and your machine. Shell commands, MCP tools and web fetches all run as you, with your files, tokens and logins. A prompt injection or a bad guess has nothing to stop it, other than whatever separate protections you have switched on. Use this mode only in a throwaway VM or container with no real credentials.

What about Auto-review?

It is the recommended default, and a good one: known-safe calls run, shell commands run in a sandbox when they can, and a classifier reviews the rest. Cursor's own docs add a warning box titled "Auto-review is not a security boundary." The classifier can allow a call you would have blocked.

Two details are worth knowing:

How to set it up safely

  1. Pick Auto-review or Allowlist. Do not leave Run Everything on as a convenience.
  2. Keep the sandbox on. By default, sandboxed terminal commands can read and write inside the workspace, protected paths such as .git/config and .git/hooks stay protected, and network is blocked until your network mode and sandbox.json open it.
  3. Check the separate protections. Cursor lists Browser Protection, File-Deletion Protection and External-File Protection, which can require approval even when a mode would otherwise run automatically. Make sure they are on.
  4. Tell Auto-review what to double-check. In .cursor/permissions.json, block_instructions are plain-English sentences that steer the classifier toward asking you. From Cursor's docs:
json
{
  "autoRun": {
    "allow_instructions": [],
    "block_instructions": [
      "Every AWS CLI command should go through approval first.",
      "Every command that modifies Kubernetes resources should go through approval first."
    ]
  }
}
  1. Limit what it can read. From Cursor 3.23, Read access can be set to Workspace, so reads outside the workspace ask first. The default is System, and the setting is hidden in Run Everything.
  2. Add a .cursorignore, and know its limit. It blocks Agent, Tab and @-mention access to the paths you list. Cursor's docs say the terminal and MCP server tools cannot be blocked by it, and that complete protection is not guaranteed.
text
**/.env
**/.env.*
**/*.pem
**/*.key

Cursor already ignores .env* files by default, along with entries from your .gitignore. The file is still worth having for keys and secret folders that are not covered.

  1. Review MCP servers. All MCP connections need your approval, and each tool call still needs approval unless you allowlist it. Run Everything skips that, so see Is an MCP server safe to install?.

Cloud Agents do not use run modes. They run on their own dedicated machine, so the agent never asks you to approve an action.

Quick follow-ups

Did Cursor remove YOLO mode?

The old name is gone from the settings, but the behavior is not. Run Everything runs every tool call with no sandbox and no classifier. The default is now Auto-review.

Is Auto-review safe enough?

It is a sensible default, not a wall. Cursor's own docs say it is not a security boundary and that the classifier can make mistakes. Keep the sandbox on and keep real secrets out of reach.

Does .cursorignore stop the agent from reading my .env?

It blocks Agent, Tab and @-mention access to ignored paths, but Cursor's docs say the terminal and MCP server tools cannot be blocked by it. Treat it as a context filter, not a lock.

Sources

See also the glossary and the other questions.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. Download it on Gumroad. This site does not collect email.

Get the free checklist

Wallet side of things? Get Don't Get Drained, also free. Or get both in one checkout.

Related guides

More questions