GHSA-3qcw-2rhx-2726

Suggest an improvement
Source
https://github.com/advisories/GHSA-3qcw-2rhx-2726
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3qcw-2rhx-2726/GHSA-3qcw-2rhx-2726.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-3qcw-2rhx-2726
Aliases
  • CVE-2026-45772
Published
2026-05-19T19:46:44Z
Modified
2026-05-19T20:00:09.341521061Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 0.0 (None) CVSS_V4 - 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 CVSS Calculator
Summary
Turbo: Unexpected local code execution during Yarn Berry detection
Details

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.

Database specific
{
    "github_reviewed_at": "2026-05-19T19:46:44Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-426"
    ],
    "nvd_published_at": "2026-05-15T16:16:14Z",
    "severity": "LOW"
}
References

Affected packages

npm / turbo

Package

Affected ranges

Type
SEMVER
Events
Introduced
1.1.0
Fixed
2.9.14

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3qcw-2rhx-2726/GHSA-3qcw-2rhx-2726.json"

npm / @turbo/codemod

Package

Name
@turbo/codemod
View open source insights on deps.dev
Purl
pkg:npm/%40turbo%2Fcodemod

Affected ranges

Type
SEMVER
Events
Introduced
2.3.4
Fixed
2.9.14

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3qcw-2rhx-2726/GHSA-3qcw-2rhx-2726.json"

npm / @turbo/workspaces

Package

Name
@turbo/workspaces
View open source insights on deps.dev
Purl
pkg:npm/%40turbo%2Fworkspaces

Affected ranges

Type
SEMVER
Events
Introduced
2.3.4
Fixed
2.9.14

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-3qcw-2rhx-2726/GHSA-3qcw-2rhx-2726.json"