Loading...
Skip to main content

CVE-2026-45772 — Vulnerability in @turbo/workspaces — CVE Details

LOW

Turbo: Unexpected local code execution during Yarn Berry detection

Published May 19, 2026Updated September 10, 2026Source: osv

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 (146 days ago).
  • Last revised September 10, 2026 — 113 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @turbo/workspaces to 2.9.14 or later
npm install @turbo/workspaces@2.9.14
npm
Update @turbo/codemod to 2.9.14 or later
npm install @turbo/codemod@2.9.14
npm
Update turbo to 2.9.14 or later
npm install turbo@2.9.14

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: npm (3).

PackageEcosystemAffectedFixed In
@turbo/workspaces
npm
All versions2.9.14
@turbo/codemod
npm
All versions2.9.14
turbo
npm
All versions2.9.14

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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/workspaces, @turbo/codemod and turbo. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45772 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-3qcw-2rhx-2726

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies