Vulnerability · Published May 15, 2026 · Assigned by GitHub_M
CVE-2026-45772Turborepo: Unexpected local code execution during Yarn Berry detection
None 0.0
In plain English
A security flaw in codemod from @turbo. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Turborepo is a high-performance build system for JavaScript and TypeScript codebases. From 1.1.0 to before 2.9.14, 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. This vulnerability is fixed in 2.9.14.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @turbo/codemod | 2.9.14 | GHSA-3qcw-2rhx-2726 |
| npm | @turbo/workspaces | 2.9.14 | GHSA-3qcw-2rhx-2726 |
| npm | turbo | 2.9.14 | GHSA-3qcw-2rhx-2726 |
Affected products (as reported)
Weakness: CWE-426 · 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
References
- https://github.com/vercel/turborepo/security/advisories/GHSA-3qcw-2rhx-2726 x_refsource_CONFIRM