The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-54130

CVE-2025-54130: Anysphere Cursor RCE Vulnerability

CVE-2025-54130 is a remote code execution flaw in Anysphere Cursor that allows attackers to execute arbitrary code via prompt injection. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 18, 2026

CVE-2025-54130 Overview

CVE-2025-54130 is a critical vulnerability in Cursor, an AI-powered code editor developed by Anysphere. The vulnerability allows attackers to write arbitrary files within a workspace without requiring user approval in versions prior to 1.3.9. While editing existing dotfiles requires user approval, creating new dotfiles does not enforce this security constraint. This authorization bypass can be chained with an indirect prompt injection vulnerability to achieve Remote Code Execution (RCE) on victim machines without any user interaction or approval.

Critical Impact

Attackers can exploit this vulnerability to write malicious configurations to sensitive editor files such as .vscode/settings.json, enabling full remote code execution on target systems without user consent.

Affected Products

  • Anysphere Cursor versions prior to 1.3.9
  • Cursor AI code editor with default workspace settings
  • Environments where .vscode/settings.json does not exist in the workspace

Discovery Timeline

  • 2025-08-05 - CVE-2025-54130 published to NVD
  • 2025-08-25 - Last updated in NVD database

Technical Details for CVE-2025-54130

Vulnerability Analysis

This vulnerability represents a broken access control flaw (CWE-285) in Cursor's file handling mechanism. The core issue lies in an inconsistent authorization model where the application enforces approval requirements for modifying existing dotfiles but fails to apply the same restrictions when creating new dotfiles. This design oversight creates a significant security gap that can be exploited through indirect prompt injection attacks.

When an attacker successfully injects malicious prompts into the AI context, they can instruct Cursor to create new sensitive configuration files within the workspace. The .vscode/settings.json file is a particularly attractive target because it can contain executable configurations that run automatically when the editor loads the workspace.

Root Cause

The root cause of this vulnerability is an improper implementation of the authorization check for file operations. The application correctly validates user approval when editing pre-existing dotfiles but fails to perform the same validation when creating new dotfiles from scratch. This inconsistency in the security boundary allows attackers to bypass the intended approval workflow entirely by targeting workspaces where sensitive configuration files do not yet exist.

Attack Vector

The attack leverages the network-accessible nature of AI-powered code editors that process external content. An attacker can craft malicious content containing indirect prompt injection payloads that, when processed by Cursor's AI features, hijack the context and instruct the editor to create malicious configuration files.

The attack chain works as follows:

  1. The attacker crafts content containing hidden prompt injection instructions
  2. The victim opens or processes this content in Cursor
  3. The AI interprets the injected prompts and attempts to create new workspace files
  4. Due to the missing authorization check, Cursor creates a new .vscode/settings.json file without user approval
  5. The malicious settings file contains configurations that trigger code execution
  6. Upon workspace reload or editor restart, the malicious code executes with the victim's privileges

Technical details regarding exploitation can be found in the GitHub Security Advisory.

Detection Methods for CVE-2025-54130

Indicators of Compromise

  • Unexpected creation of .vscode/settings.json or other dotfiles in project workspaces
  • Presence of unfamiliar or suspicious configurations in VS Code settings files
  • Unusual task definitions or terminal commands in workspace configuration files
  • Evidence of prompt injection patterns in recently accessed files or AI chat history

Detection Strategies

  • Monitor file system events for creation of new dotfiles in workspace directories
  • Implement file integrity monitoring for sensitive configuration paths including .vscode/ directories
  • Review AI interaction logs for suspicious prompt patterns indicative of injection attempts
  • Compare workspace configurations against known-good baselines to detect unauthorized modifications

Monitoring Recommendations

  • Enable audit logging for all file creation events within development workspaces
  • Configure endpoint detection to alert on suspicious VS Code settings modifications
  • Implement behavioral analysis to detect unusual AI-driven file operations
  • Deploy SentinelOne Singularity to monitor for indicators of prompt injection and subsequent malicious file creation

How to Mitigate CVE-2025-54130

Immediate Actions Required

  • Upgrade Cursor to version 1.3.9 or later immediately
  • Review existing workspaces for unexpected or suspicious dotfiles
  • Audit .vscode/settings.json files for malicious configurations or task definitions
  • Enable additional approval requirements for AI-driven file operations where available

Patch Information

Anysphere has released version 1.3.9 of Cursor which addresses this vulnerability by enforcing proper authorization checks for all dotfile operations, including creation of new files. Users should update to this version or later through the standard update mechanism. For additional details, refer to the GitHub Security Advisory for GHSA-vqv7-vq92-x87f.

Workarounds

  • Pre-create empty .vscode/settings.json files in all workspaces to trigger the existing edit approval mechanism
  • Restrict AI features from accessing or modifying workspace configuration directories
  • Implement file system permissions to prevent automated creation of dotfiles
  • Use read-only workspace configurations where development requirements permit
bash
# Create protective .vscode/settings.json in existing workspaces
# This ensures the edit-approval mechanism is triggered for any modifications
find /path/to/workspaces -type d -name ".vscode" -prune -o -type d -maxdepth 2 -exec sh -c '
  mkdir -p "$1/.vscode" && touch "$1/.vscode/settings.json"
' _ {} \;

# Set restrictive permissions on existing VS Code settings
chmod 644 /path/to/workspace/.vscode/settings.json

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAnysphere Cursor

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-285

  • NVD-CWE-Other
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-26268: Anysphere Cursor Sandbox Escape RCE Flaw

  • CVE-2025-59944: Anysphere Cursor RCE Vulnerability

  • CVE-2025-54133: Anysphere Cursor RCE Vulnerability

  • CVE-2025-54135: Anysphere Cursor RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English