Cursor Workspace Trust disabled code execution security flaw
Vulnerability
Summary
Hide ▲
Show ▼
Cursor now has a disclosed weakness where Workspace Trust disabled by default can let a malicious repository trigger silent code execution when a folder is opened. The flaw matters because a booby-trapped project can run tasks in the user's context, creating risk of credential theft, file modification, and broader system compromise. The unsafe trigger is tied to VS Code-style tasks configured with runOptions.runOn: 'folderOpen'.
Related Happenings
Cursor local SQLite secret-storage exposing credentials security flaw
Vulnerability
H score34
First: 29.04.2026 18:00
Last: 29.04.2026 18:00
Sources 1
About this happening:
A high-severity Cursor flaw lets installed extensions read secrets stored locally, exposing API keys and session tokens without user interaction. The weakness stem...
Cursor local SQLite secret-storage exposing credentials security flaw
VulnerabilityAbout this happening: A high-severity Cursor flaw lets installed extensions read secrets stored locally, exposing API keys and session tokens without user interaction. The weakness stem...
MCP STDIO arbitrary command execution security flaw
Vulnerability
H score53
First: 16.04.2026 12:40
Last: 16.04.2026 12:40
Sources 1
About this happening:
A critical MCP flaw in the STDIO interface can trigger arbitrary command execution, putting connected AI systems at risk of data exposure and system takeover...
MCP STDIO arbitrary command execution security flaw
VulnerabilityAbout this happening: A critical MCP flaw in the STDIO interface can trigger arbitrary command execution, putting connected AI systems at risk of data exposure and system takeover...
StoatWaffle malware distributed through malicious VS Code projects
Malware Activity
H score29
First: 23.03.2026 20:09
Last: 23.03.2026 20:09
Sources 1
About this happening:
The StoatWaffle malware is being delivered through malicious VS Code projects, creating a live risk of credential theft and remote command execution on developer s...
StoatWaffle malware distributed through malicious VS Code projects
Malware ActivityAbout this happening: The StoatWaffle malware is being delivered through malicious VS Code projects, creating a live risk of credential theft and remote command execution on developer s...
Cursor IDE MCP deeplink code execution security flaw
Vulnerability
H score37
First: 17.03.2026 17:00
Last: 17.03.2026 17:00
Sources 1
About this happening:
A Cursor IDE flaw in MCP deeplinks can let crafted installation links trigger arbitrary commands or install malicious components under some user-approval and confi...
Cursor IDE MCP deeplink code execution security flaw
VulnerabilityAbout this happening: A Cursor IDE flaw in MCP deeplinks can let crafted installation links trigger arbitrary commands or install malicious components under some user-approval and confi...
Windows 11 Insider Preview adds secure batch-file execution controls
Security Tool/Service
H score11
First: 27.02.2026 22:00
Last: 27.02.2026 22:00
Sources 1
About this happening:
Microsoft is adding a more secure batch-file and CMD-script execution mode in Windows 11 Insider Preview builds, which matters for enterprise scripted workflows that n...
Windows 11 Insider Preview adds secure batch-file execution controls
Security Tool/ServiceAbout this happening: Microsoft is adding a more secure batch-file and CMD-script execution mode in Windows 11 Insider Preview builds, which matters for enterprise scripted workflows that n...
Timeline
-
12.09.2025 07:49 3 articles · 10mo ago
Oasis Security discloses Cursor Workspace Trust code execution flaw
Initial DisclosureOasis Security disclosed a flaw in Cursor, an AI-powered fork of Visual Studio Code, where Workspace Trust is disabled by default and VS Code-style tasks configured with runOptions.runOn: 'folderOpen' can auto-execute when a project folder is opened. A malicious repository with a hidden .vscode/tasks.json can trigger silent code execution in the user's context, creating risk of sensitive credential exposure, file modification, and broader system compromise. Users are advised to enable Workspace Trust in Cursor, open untrusted repositories in a different code editor, and audit them before opening them in the tool.
Show sources
- Cursor AI Code Editor Flaw Enables Silent Code Execution via Malicious Repositories — thehackernews.com — 12.09.2025 07:49
- Cursor AI Code Editor Flaw Enables Silent Code Execution via Malicious Repositories — thehackernews.com — 12.09.2025 07:49
- Cursor AI editor lets repos “autorun” malicious code on devices — www.bleepingcomputer.com — 10.09.2025 18:46