STUPID-2026-0096
Cursor's terminal sandbox trusted an agent-set working directory, letting zero-click prompt injection escape it and gain code execution (CVE-2026-50548)
Instruction given
N/A — this is a flaw in Cursor's own terminal-sandbox design, triggerable by content the agent merely reads (e.g. an MCP tool response or a web page), not a task a user knowingly asked the agent to perform.
Expected behavior
Cursor's agent terminal sandbox should confine command execution and file writes to the project workspace regardless of what parameters the agent itself sets, so that content the agent reads cannot expand its own write access.
Actual behavior
Before version 3.0, Cursor's sandbox granted write access to the working directory of an agent-run terminal command, and the agent could set that working_directory parameter itself. A prompt injected into content the agent merely read (an MCP connector response, a web search result) could instruct it to point working_directory at a sensitive path outside the workspace and overwrite the cursorsandbox helper binary that enforces the sandbox, disabling sandboxing for every command that followed — remote code execution with no click or approval from the user.
Damage
Rated CVSS 9.8 (3.1) / 9.3 (4.0), critical. Any content an agent read — not just code it was told to run — could achieve unsandboxed code execution on the developer's machine under the developer's own privileges, exposing local secrets, source, and credentials. Disclosed by Cato AI Labs as one of two paired flaws named DuneSlide (with CVE-2026-50549); fixed in Cursor 3.0.
Classification
- Agent
- Cursor
- Failure mode
- Security Vulnerability
- Root cause
- Other
- Domain
- Security
- Source
- Security Research
Related incidents
Get told when an agent breaks something
We document AI agent failures daily, severity-scored against a published scale. When one lands at 7.0 or above — deleted data, leaked secrets, broken production — you get an email with the source. When nothing does, you get nothing.
This database is callable over MCP — query it from inside your agent.