Skip to content
Submit incident
AII-1001-33921
Well documentedThree or more independent publishers report the core facts.

Remote code execution flaw in Cursor AI code editor enables automatic malware execution

Security researchers at Oasis Security disclosed a critical vulnerability in Cursor, an AI-powered code editor, that allows attackers to automatically execute malicious code when developers open compromised repositories. The flaw results from Cursor's default configuration that disables a security verification feature to preserve automated functionality.

10 September 2025 Β· Cursor Β· Security and cyberattacks
10 September 2025
AII-1001-339214 sources ↓
Quick facts
Category
Security and cyberattacks
Source
Cyber Security News
Date
10 September 2025
Drafted by
Raidu Incident Detection

What happened

Oasis Security discovered a critical remote code execution vulnerability in Cursor, an AI-powered code editor. The flaw allows attackers to automatically execute malicious code when a developer opens a code repository containing a .vscode/tasks.json configuration file.

The vulnerability exists because Cursor's "Workplace Trust" feature is disabled by default, a setting that Cursor said it maintains to avoid interfering with core automated features that users depend on. With this security verification step disabled, malware embedded in repositories runs automatically without warning.

Reported impact

According to Oasis Security, the vulnerability could leak sensitive credentials, modify files, or serve as a vector for broader system compromise, potentially placing Cursor users at significant risk from supply chain attacks. The exploit could open a direct path to unauthorized access with an organization-wide blast radius.

Index analysis

The vulnerability stems from Cursor's default configuration, which prioritizes user convenience over security by disabling the Workplace Trust feature. This design decision leaves developers vulnerable to supply chain attacks when opening untrusted code repositories.

Governance controls

Cursor recommended either enabling Workspace Trust or using a basic text editor when working with suspected malicious repositories.

Classification

Category
Security and cyberattacks
Industry
Digital security
Harm status
Potential harm
Intent
Unintentional
Timing
Post-deployment
Harm types
Public interest
Harmed
Consumers
Failure modes
Unsafe autonomous behaviour
AI systems
Cursor

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

Cyber Security News
Cursor AI Code Editor RCE Vulnerability Enables "autorun" of Malicious on your Machine
10 September 2025
IT Security News - cybersecurity, infosecurity news
Cursor AI Code Editor RCE Flaw Allows Malicious Code to Autorun on Machines - IT Security News
11 September 2025
ZDNet
This 'critical' Cursor security flaw could expose your code to malware - how to fix it
12 September 2025
WebProNews
Cursor AI Editor Flaw Enables Automatic Malware Execution
13 September 2025
Aug 2026NVIDIA NemoClaw vulnerability allows remote model poisoning via DNS rebindingConfirmedSecurity and cyberattacksSiliconANGLEDark ReadingWebProNews+4Jul 2026HalluSquatting attack exploits AI coding assistants to install botnet malwareWell documentedSecurity and cyberattacksArs TechnicaCrypto BriefingCyber Security News+2Jul 2026GhostApproval Symlink Flaw Enables Remote Code Execution via AI Coding AssistantsConfirmedSecurity and cyberattacksIT Security News - cybersecurity, infosecurity newsInfoWorldApr 2026Cursor AI agent running Claude Opus 4.6 deleted PocketOS production databaseConfirmedSecurity and cyberattackscybersecuritynews.comtomshardware.comMar 2026Taiwan cybersecurity authority warns of OpenClaw AI agent risksConfirmedSecurity and cyberattacksθ‡ͺ由時報電子報ETtoday貑碓雲TechNews η§‘ζŠ€ζ–°ε ± | εΈ‚ε ΄ε’Œζ₯­ε…§δΊΊε£«ι—œεΏƒηš„θΆ¨ε‹’γ€ε…§εΉ•θˆ‡ζ–°θž+4