{"id":"CVE-2026-45772","aliases":["GHSA-3qcw-2rhx-2726"],"url":"https://o3.security/vulnerability/CVE-2026-45772","summary":"Turborepo: 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.","published":"2026-05-15T15:45:45.252Z","modified":"2026-08-12T03:51:21.331048696Z","cvss":null,"epss":{"score":0.00386,"percentile":0.31815,"asOf":"2026-08-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"turbo","fixedVersion":"2.9.14"},{"ecosystem":"npm","name":"@turbo/codemod","fixedVersion":"2.9.14"},{"ecosystem":"npm","name":"@turbo/workspaces","fixedVersion":"2.9.14"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45772.json"},{"type":"ADVISORY","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:21.331048696Z"}}