Executive Summary
Critical vulnerabilities in Cursor reportedly allow zero-click prompt injection to escape the application sandbox and achieve operating-system-level code execution. Organizations using Cursor or similar AI coding agents should prioritize security testing of prompt ingestion, sandboxing, and host-system access.
What Happened
The DuneSlide vulnerabilities enable zero-click prompt injection attacks that escape Cursor's sandbox and execute arbitrary code on the underlying operating system. The post Critical Cursor AI Code Editor Flaws Could Lead to OS-Level Remote Code Execution appeared first on SecurityWeek .
Affected Products
- Cursor AI code editor
Vulnerability / Attack Technique
Zero-click prompt injection with sandbox escape
Technical Mechanism
The DuneSlide vulnerabilities enable prompt injection without requiring a user click. The injected prompt escapes Cursor's sandbox and executes arbitrary code on the underlying operating system.
AI Security Category
LLM01:2025 Prompt Injection
Part of the Prompt Injection topic.
Relevant Frameworks
RealGround Analysis
This demonstrates how prompt injection can cross from an AI coding workflow into the host operating system when agent permissions and sandbox boundaries are insufficient. Teams running AI agents or LLM applications should treat prompt-derived actions as untrusted and verify that model outputs cannot directly trigger unrestricted host execution.
Recommended Controls
- Enforce strict sandbox isolation between the AI coding environment and the underlying operating system.
- Require explicit user approval before model-generated actions can execute code or access host resources.
- Apply least-privilege permissions to AI coding agents, including restricted filesystem, process, and network access.
- Test zero-click and indirect prompt injection paths through recurring AI red-team assessments.
- Monitor and block model-generated commands that attempt to escape application or container boundaries.
Related RealGround Service
Secure AI Agent Build · or start with the free AI Agent Security Scanner.
Sources
securityweek.com: https://www.securityweek.com/critical-cursor-ai-ide-flaws-could-lead-to-os-level-remote-code-execution/
Summary and analysis written by RealGround from the source above; last updated 2026-10-18.
