{"id":"GHSA-3qcw-2rhx-2726","revision":"5e8c6e79dd0f413b9af2c532cddc7edd","records":[{"revision":"5e8c6e79dd0f413b9af2c532cddc7edd","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-3qcw-2rhx-2726","aliases":["CVE-2026-45772"],"title":"Turbo: Unexpected local code execution during Yarn Berry detection","description":"### 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.","state":0,"publishedAt":"2026-05-19T19:46:44+00:00","modifiedAt":"2026-09-10T03:51:04.4439861+00:00","affected":[{"ecosystem":"npm","name":"turbo","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.1.0"},{"kind":"fixed","version":"2.9.14"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@turbo/codemod","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.3.4"},{"kind":"fixed","version":"2.9.14"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@turbo/workspaces","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.3.4"},{"kind":"fixed","version":"2.9.14"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/vercel/turborepo/security/advisories/GHSA-3qcw-2rhx-2726","https://nvd.nist.gov/vuln/detail/CVE-2026-45772","https://github.com/vercel/turborepo"],"sourceUrl":"https://github.com/advisories/GHSA-3qcw-2rhx-2726","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-3qcw-2rhx-2726","identifiers":["GHSA-3qcw-2rhx-2726","CVE-2026-45772"]},"retained":false,"historicalAffected":[]}],"coverage":[]}