Cyber Risks · The Hacker News

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, 2026