CVE-2026-45772 — Vulnerability in turbo — CVE Details
Turbo: Unexpected local code execution during Yarn Berry detection
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.64%). Schedule for your next planned update.
Does your project use an affected turbo version?
Paste your package-lock.json to check it for CVE-2026-45772 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Turborepo can be vulnerable to arbitrary code execution when run in untrusted repositories that contain malicious Yarn configuration. In affected versions, package manager detection executed yarn --version from the project directory, which could cause Yarn to load and execute a project-controlled yarnPath from .yarnrc.yml. An attacker who controls repository contents could cause code execution when a user or CI system runs affected turbo, @turbo/codemod, or @turbo/workspace conversion commands.
Fix
Turbo now avoids executing project-local Yarn during package manager detection. Yarn versions and paths are inferred from metadata such as package.json, parsing the value of yarnPath in .yarnrc.yml rather than executing it, and yarn.lock, and unrecognized Yarn lockfile formats are rejected instead of falling back to executing yarn.
Workarounds
If you cannot upgrade immediately, do not run Turborepo commands in untrusted repositories. Review or remove .yarnrc.yml files that define yarnPath before running Turborepo, especially in CI or automated tooling that processes external projects.
Advisory Timeline
- First published May 19, 2026 (191 days ago).
- Last revised September 10, 2026 — 113 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install turbo@2.9.14
npm install @turbo/workspaces@2.9.14
npm install @turbo/codemod@2.9.14
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: npm (3).
| Package | Fixed In |
|---|---|
| turbo npm · Affected: All versions | 2.9.14 |
| @turbo/workspaces npm · Affected: All versions | 2.9.14 |
| @turbo/codemod npm · Affected: All versions | 2.9.14 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-426
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-45772?
- Turbo: Unexpected local code execution during Yarn Berry detection. This vulnerability has been assigned a severity rating of LOW (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-45772?
- CVE-2026-45772 affects turbo, @turbo/workspaces and @turbo/codemod. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45772 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 45.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2024-28181HIGH
TurboBoost Commands vulnerable to arbitrary method invocation
- CVE-2026-94486LOW
Next.js has information disclosure in development server's Model Context Protocol endpoint
- CVE-2026-77063LOW
multer vulnerable to file size limit bypass via async fileFilter race condition