Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-3qcw-2rhx-2726

Опубликовано: 19 мая 2026
Источник: github
Github: Прошло ревью
CVSS4: 0
CVSS3: 9.8

Описание

Turbo: Unexpected local code execution during Yarn Berry detection

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.

Пакеты

Наименование

turbo

npm
Затронутые версииВерсия исправления

>= 1.1.0, < 2.9.14

2.9.14

Наименование

@turbo/codemod

npm
Затронутые версииВерсия исправления

>= 2.3.4, < 2.9.14

2.9.14

Наименование

@turbo/workspaces

npm
Затронутые версииВерсия исправления

>= 2.3.4, < 2.9.14

2.9.14

EPSS

Процентиль: 32%
0.00386
Низкий

0 Low

CVSS4

9.8 Critical

CVSS3

Дефекты

CWE-426

Связанные уязвимости

CVSS3: 9.8
nvd
4 месяца назад

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.

EPSS

Процентиль: 32%
0.00386
Низкий

0 Low

CVSS4

9.8 Critical

CVSS3

Дефекты

CWE-426