{"id":"GHSA-3qcw-2rhx-2726","summary":"Turbo: Unexpected local code execution during Yarn Berry detection","details":"### Impact  \n\nTurborepo 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.\n\n### Fix  \n\nTurbo 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`.\n\n### Workarounds  \n\nIf 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.","aliases":["CVE-2026-45772"],"modified":"2026-09-10T03:51:04.443986062Z","published":"2026-05-19T19:46:44Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-05-19T19:46:44Z","nvd_published_at":"2026-05-15T16:16:14Z","cwe_ids":["CWE-426"],"severity":"LOW"},"references":[{"type":"WEB","url":"https://github.com/vercel/turborepo/security/advisories/GHSA-3qcw-2rhx-2726"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45772"},{"type":"PACKAGE","url":"https://github.com/vercel/turborepo"}],"affected":[{"package":{"name":"turbo","ecosystem":"npm","purl":"pkg:npm/turbo"},"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"}},{"package":{"name":"@turbo/codemod","ecosystem":"npm","purl":"pkg:npm/%40turbo/codemod"},"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"}},{"package":{"name":"@turbo/workspaces","ecosystem":"npm","purl":"pkg:npm/%40turbo/workspaces"},"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}