CVE Catalog

CVE-2026-45772

Critical
Published: Translated: NVD NIST

Summary

Turborepo, a build system for JavaScript and TypeScript codebases, is vulnerable to arbitrary code execution in versions from 1.1.0 to before 2.9.14 when run in untrusted repositories containing malicious Yarn configuration. Package manager detection executes yarn --version, which could lead to loading and executing code from .yarnrc.yml controlled by an attacker.

Risk Assessment

Organizations may be exposed to arbitrary code execution, potentially leading to data loss, security breaches, or system takeover. Attackers could exploit this vulnerability to compromise CI environments or local developer machines.

Recommendation

It is recommended to upgrade Turborepo to version 2.9.14 or later to mitigate this vulnerability. Additionally, avoid running Turborepo in untrusted repositories.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS