Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-53536

CVE-2025-53536: Roocode Roo Code RCE Vulnerability

CVE-2025-53536 is a remote code execution vulnerability in Roocode Roo Code AI agent allowing attackers to execute arbitrary code via VS Code settings manipulation. This article covers technical details, affected versions, and patches.

Published: April 22, 2026

CVE-2025-53536 Overview

CVE-2025-53536 is a code execution vulnerability in Roo Code, an AI-powered autonomous coding agent for Visual Studio Code. Prior to version 3.22.6, if a victim had the "Write" auto-approved setting enabled, an attacker with the ability to submit prompts to the AI agent could write to VS Code settings files and trigger arbitrary code execution. This vulnerability enables attackers to manipulate IDE configuration files to achieve command execution through legitimate VS Code functionality.

Critical Impact

An attacker can achieve arbitrary code execution on the victim's system by manipulating VS Code settings through the Roo Code AI agent, potentially leading to full system compromise.

Affected Products

  • Roocode Roo Code versions prior to 3.22.6
  • VS Code environments with Roo Code extension installed
  • Systems with "Write" auto-approval enabled in Roo Code settings

Discovery Timeline

  • 2025-07-07 - CVE-2025-53536 published to NVD
  • 2025-09-15 - Last updated in NVD database

Technical Details for CVE-2025-53536

Vulnerability Analysis

This vulnerability falls under CWE-552 (Files or Directories Accessible to External Parties) and enables a sophisticated attack chain that leverages the AI agent's write capabilities to achieve code execution. The attack requires a combination of social engineering and prompt injection techniques to manipulate the autonomous coding agent into writing malicious configurations.

The vulnerability exploits the trust relationship between the AI agent and VS Code's settings infrastructure. When the "Write" permission is auto-approved, the agent can modify configuration files without additional user confirmation, creating an opportunity for attackers to inject malicious settings that trigger code execution.

Root Cause

The root cause lies in insufficient access controls and path restrictions within the Roo Code extension. The agent was permitted to write to sensitive VS Code settings files without proper validation or sandboxing of the write targets. VS Code settings files can specify executable paths for various language validators and tools, and the extension failed to recognize these paths as security-sensitive locations that should be protected from automated modification.

Attack Vector

The attack vector involves network-based prompt injection where an attacker submits crafted prompts to the Roo Code agent. One documented exploitation method involves manipulating the php.validate.executablePath setting:

  1. The attacker crafts a prompt that instructs the AI agent to modify VS Code settings
  2. With "Write" auto-approved, the agent writes to the VS Code settings file
  3. The attacker sets php.validate.executablePath to point to a malicious executable or command
  4. The attacker then creates a PHP file in the workspace
  5. VS Code's PHP validation automatically invokes the malicious executable, achieving code execution

This attack methodology could be adapted to target other VS Code settings that reference executable paths, making it a versatile exploitation technique for attackers who can influence the AI agent's actions.

Detection Methods for CVE-2025-53536

Indicators of Compromise

  • Unexpected modifications to VS Code settings files (.vscode/settings.json or user-level settings)
  • Changes to executable path settings such as php.validate.executablePath, python.pythonPath, or similar configuration options
  • Unusual AI agent prompts requesting modifications to IDE configuration files
  • Presence of suspicious executable files in non-standard locations referenced by VS Code settings

Detection Strategies

  • Monitor file system changes to VS Code configuration directories for unauthorized modifications
  • Implement logging for all Roo Code agent write operations to track configuration changes
  • Use endpoint detection solutions to alert on process execution chains originating from VS Code settings-triggered validators
  • Review AI agent conversation logs for prompt injection attempts targeting configuration files

Monitoring Recommendations

  • Enable detailed audit logging for VS Code extension activities in enterprise environments
  • Configure SentinelOne to monitor for suspicious process spawning from VS Code or related language validator processes
  • Implement file integrity monitoring on IDE settings directories to detect unauthorized changes
  • Establish baseline configurations for developer workstations and alert on deviations

How to Mitigate CVE-2025-53536

Immediate Actions Required

  • Upgrade Roo Code to version 3.22.6 or later immediately
  • Disable the "Write" auto-approval setting until the patch is applied
  • Review VS Code settings files for any unauthorized modifications to executable paths
  • Audit recent AI agent activity logs for suspicious prompt patterns
  • Consider temporarily disabling the Roo Code extension in high-security environments until patching is complete

Patch Information

Roocode has released version 3.22.6 which addresses this vulnerability. The fix is documented in the following commits:

  • GitHub Commit 1be6fce
  • GitHub Commit 3993406

For complete details, see the GitHub Security Advisory GHSA-3765-5vjr-qjgm.

Workarounds

  • Disable the "Write" auto-approval feature in Roo Code settings to require manual confirmation for all write operations
  • Implement workspace trust policies to restrict which files and directories the AI agent can modify
  • Use VS Code's restricted mode when working with untrusted content or external prompts
  • Configure endpoint protection to block modification of VS Code settings files by unauthorized processes
bash
# Verify Roo Code extension version in VS Code
code --list-extensions --show-versions | grep -i roo

# Check for and backup current VS Code settings before updating
cp ~/.config/Code/User/settings.json ~/.config/Code/User/settings.json.backup

# Update Roo Code extension via VS Code CLI
code --install-extension roocode.roo-code --force

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRoocode

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.45%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-552
  • Vendor Resources
  • GitHub Commit 1be6fce

  • GitHub Commit 3993406

  • GitHub Security Advisory GHSA-3765-5vjr-qjgm
  • Related CVEs
  • CVE-2025-65946: Roocode Roo Code RCE Vulnerability

  • CVE-2025-58371: Roocode Roo Code RCE Vulnerability

  • CVE-2025-58372: Roocode Roo Code RCE Vulnerability

  • CVE-2025-58370: Roocode Roo Code 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