A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-46508

CVE-2026-46508: Turborepo LSP RCE Vulnerability

CVE-2026-46508 is a remote code execution vulnerability in Turborepo Language Server Protocol VS Code extension that allows malicious workspaces to execute arbitrary shell commands. This article covers technical details, affected versions, impact, and mitigation.

Published: May 21, 2026

CVE-2026-46508 Overview

CVE-2026-46508 is a command injection vulnerability in the Turborepo Language Server Protocol (LSP) VS Code extension. The extension executed shell commands built through string concatenation using values controlled by the workspace. A malicious repository could supply crafted task names or workspace settings that the extension interpolated into shell commands. When a developer opened the workspace or ran a task, the shell interpreted those values, executing arbitrary commands with the privileges of the local VS Code process. Vercel fixed the issue in Turborepo 2.9.14000.

Critical Impact

Opening a malicious repository in VS Code with the Turborepo LSP extension installed can result in arbitrary command execution under the developer's user account.

Affected Products

  • Vercel Turborepo Language Server Protocol extension for Visual Studio Code
  • All versions prior to 2.9.14000
  • Developer workstations with the Turborepo LSP extension installed and active

Discovery Timeline

  • 2026-05-15 - CVE-2026-46508 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-46508

Vulnerability Analysis

The Turborepo LSP VS Code extension built shell command strings for daemon operations and task execution by concatenating workspace-controlled inputs. Task names defined in turbo.json and values pulled from workspace settings were inserted directly into command strings. The extension then passed these strings to a shell interpreter rather than executing them through an argument array. The vulnerability is classified as Improper Neutralization of Special Elements used in a Command [CWE-77].

Exploitation requires a developer to open a malicious repository while the extension is active or to run a task through the extension. No authentication is required, but user interaction is necessary to load the repository. The attack vector is local because the attacker must deliver the crafted workspace to the victim.

Root Cause

The extension used string-based command execution instead of safer APIs that pass arguments as discrete parameters. Shell metacharacters such as ;, &&, |, and backticks inside attacker-controlled task names were treated as command separators. Because the extension did not validate or escape these inputs, repository content effectively controlled the command line passed to the shell.

Attack Vector

An attacker publishes a repository containing a turbo.json task name or a .vscode/settings.json value that includes shell metacharacters and embedded payloads. When a victim clones and opens the repository in VS Code, the Turborepo LSP extension activates and processes the workspace. Activation or task invocation triggers shell execution of the attacker-supplied payload. Commands run with the same privileges as the VS Code process, providing full access to the developer's files, SSH keys, and source code.

No verified proof-of-concept code is publicly available. Refer to the GitHub Security Advisory GHSA-5xc8-49mv-x4mm for vendor-supplied technical details.

Detection Methods for CVE-2026-46508

Indicators of Compromise

  • Unexpected child processes spawned by the VS Code or Turborepo LSP process, such as sh, bash, cmd.exe, or powershell.exe running unfamiliar command lines
  • Outbound network connections from developer workstations shortly after opening a new repository
  • Modifications to shell profile files (~/.bashrc, ~/.zshrc, ~/.profile) or scheduled tasks created during VS Code sessions
  • Reads of sensitive files such as ~/.ssh/id_rsa, browser credential stores, or cloud provider credential files by VS Code child processes

Detection Strategies

  • Inventory VS Code installations across developer endpoints and identify versions of the Turborepo LSP extension older than 2.9.14000
  • Monitor for shell metacharacters appearing in turbo.json task names within repositories under development
  • Alert on process trees where the VS Code extension host spawns shells that subsequently launch reconnaissance or exfiltration utilities such as curl, wget, or nc

Monitoring Recommendations

  • Capture EDR telemetry on the VS Code process and its descendants, focusing on command-line arguments containing shell control characters
  • Track file access events targeting credential stores from any process descended from VS Code
  • Audit repository clone events on developer machines and correlate them with subsequent anomalous process activity

How to Mitigate CVE-2026-46508

Immediate Actions Required

  • Update the Turborepo LSP VS Code extension to version 2.9.14000 or later on all developer workstations
  • Disable or uninstall the extension until the update can be deployed if exposure to untrusted repositories is likely
  • Avoid opening untrusted repositories in VS Code, and use Workspace Trust to restrict extension activation for unknown sources

Patch Information

Vercel released a fix in Turborepo 2.9.14000. The patch replaces string-based shell execution with safer command invocation that passes arguments as discrete parameters rather than interpolating them into a shell command line. Details are published in the Vercel Turborepo Security Advisory GHSA-5xc8-49mv-x4mm.

Workarounds

  • Enable VS Code Workspace Trust and only grant trust to repositories from verified sources
  • Review turbo.json and .vscode/settings.json for unexpected shell metacharacters before opening a repository
  • Run VS Code under a least-privilege user account or inside a development container to limit blast radius
bash
# Verify and update the Turborepo LSP extension version
code --list-extensions --show-versions | grep -i turbo
code --install-extension Vercel.turbo-vsc --force

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVercel Turborepo

  • SeverityHIGH

  • CVSS Score8.4

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-45772: Vercel Turborepo RCE Vulnerability

  • CVE-2026-45773: Vercel Turborepo CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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