Cursor AI Code Editor Flaw Enables Silent Code Execution via Malicious Repositories
Summary: Oasis Security disclosed that Cursor, an AI-powered fork of Visual Studio Code, ships with Workspace Trust disabled by default, so a malicious .vscode/tasks.json configured with runOptions.runOn: 'folderOpen' executes code the moment a developer opens a booby-trapped repository. Researcher Erez Schwartz said the flaw could leak sensitive credentials, modify files, or serve as a vector for broader system compromise, and users are advised to enable Workspace Trust, open untrusted repositories in a different editor, and audit them first.
Why it matters: Opening a folder is the most routine action a developer takes, and here it is enough to run an attacker's code with the developer's own privileges - the same credentials and file access your supply chain controls are meant to protect.
Read the original at The Hacker News ↗
- Topics
- Supply Chain & AppSec
- Related
- Kitesurf is now open source Cyber Risks · Nov 13, 2026Trained to betray: How post-training supply chain attacks hijack coding agents Cyber Risks · Nov 12, 2026ZDI-26-913: (0Day) Meta fairseq load_audio_path Code Injection Remote Code Execution Vulnerability Cyber Risks · Nov 11, 2026