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-45772

CVE-2026-45772: Vercel Turborepo RCE Vulnerability

CVE-2026-45772 is a remote code execution vulnerability in Vercel Turborepo affecting versions 1.1.0 to before 2.9.14. Malicious Yarn configurations can trigger arbitrary code execution. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 21, 2026

CVE-2026-45772 Overview

CVE-2026-45772 affects Vercel Turborepo, a high-performance build system for JavaScript and TypeScript codebases. Versions from 1.1.0 to before 2.9.14 can execute arbitrary code when run inside untrusted repositories containing malicious Yarn configuration. The package manager detection logic invokes yarn --version from the project directory, which causes Yarn to load and execute a project-controlled yarnPath defined in .yarnrc.yml. Attackers who control repository contents can trigger code execution when developers or CI systems run affected turbo, @turbo/codemod, or @turbo/workspace conversion commands. The vulnerability is fixed in version 2.9.14.

Critical Impact

Cloning and running Turborepo commands against an attacker-controlled repository results in arbitrary code execution on the developer workstation or CI runner.

Affected Products

  • Vercel Turborepo versions 1.1.0 through 2.9.13
  • @turbo/codemod package shipped with affected Turborepo releases
  • @turbo/workspace conversion tooling shipped with affected Turborepo releases

Discovery Timeline

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

Technical Details for CVE-2026-45772

Vulnerability Analysis

The flaw is a search path manipulation issue classified as [CWE-426] Untrusted Search Path. Turborepo determines which package manager a project uses by spawning yarn --version inside the target repository. Modern Yarn (Berry) honors the yarnPath directive in .yarnrc.yml, which points to a JavaScript file that Yarn loads and executes before processing any command. When yarnPath references a file committed to the repository, simply running version detection executes that file under the current user's privileges. The condition is reachable through routine commands such as turbo run, codemod migrations, and workspace conversion utilities.

Root Cause

The root cause is implicit trust in repository-local configuration during environment discovery. Turborepo treats yarn --version as a benign capability probe, but Yarn's design promotes yarnPath over the system binary. The detection routine does not isolate this probe, validate .yarnrc.yml, or pin execution to a known Yarn installation outside the repository.

Attack Vector

An attacker publishes or contributes to a repository containing a crafted .yarnrc.yml with yarnPath pointing to a malicious script committed alongside it. When a victim clones the repository and runs any affected Turborepo command, package manager detection invokes Yarn, which loads the attacker's script. Execution occurs without user interaction beyond running the standard Turborepo entry point and inherits the privileges of the developer or CI service account.

The vulnerability mechanism is documented in the Turborepo GitHub Security Advisory GHSA-3qcw-2rhx-2726. No public proof-of-concept exploit is available at this time.

Detection Methods for CVE-2026-45772

Indicators of Compromise

  • Presence of .yarnrc.yml in untrusted repositories with a yarnPath directive referencing a repository-local file
  • Child processes spawned by turbo, @turbo/codemod, or @turbo/workspace invoking Node.js against files inside the cloned repository tree
  • Outbound network connections initiated by Node.js shortly after turbo command execution on a freshly cloned repository

Detection Strategies

  • Audit repositories and CI workspaces for .yarnrc.yml files containing a yarnPath entry, and flag paths that resolve inside the repository
  • Monitor for yarn --version invocations followed by execution of arbitrary .js, .cjs, or .mjs files from the working directory
  • Inventory installed Turborepo versions across developer machines and CI images, and alert on any version below 2.9.14

Monitoring Recommendations

  • Enable process lineage logging on CI runners to capture parent-child relationships between turbo and downstream interpreters
  • Alert on first-seen executables launched from repository checkouts during build steps
  • Track EDR telemetry for Node.js processes spawning shells, network clients, or credential access utilities after Turborepo commands

How to Mitigate CVE-2026-45772

Immediate Actions Required

  • Upgrade Turborepo to version 2.9.14 or later across all developer workstations and CI environments
  • Treat unfamiliar repositories as untrusted and review .yarnrc.yml before running any Turborepo command against them
  • Rotate any credentials or tokens that may have been exposed on hosts that executed Turborepo commands against untrusted repositories

Patch Information

Vercel released the fix in Turborepo 2.9.14. The advisory and remediation details are published in the Vercel Turborepo Security Advisory GHSA-3qcw-2rhx-2726. Update via the standard package manager workflow, for example npm install turbo@latest or pnpm add -D turbo@latest.

Workarounds

  • Run Turborepo only against repositories whose contents are trusted and reviewed
  • Inspect and remove any repository-local yarnPath entries in .yarnrc.yml before executing Turborepo commands
  • Execute Turborepo commands inside ephemeral, sandboxed containers with no access to credentials or production networks until upgrades complete
bash
# Update Turborepo to the patched release
npm install --save-dev turbo@2.9.14

# Inspect untrusted repositories before running turbo
grep -R "yarnPath" .yarnrc.yml 2>/dev/null

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

  • SeverityNONE

  • CVSS Score0.0

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/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
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-426
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-46508: Turborepo LSP 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