{"id":"CVE-2026-45772","aliases":["CVE-2026-45772","GHSA-3qcw-2rhx-2726"],"related":[],"kind":"vulnerability","state":"published","title":"Turborepo: Unexpected local code execution during Yarn Berry detection","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Turborepo es un sistema de compilación de alto rendimiento para bases de código JavaScript y TypeScript. Desde la 1.1.0 hasta antes de la 2.9.14, Turborepo puede ser vulnerable a la ejecución de código arbitrario cuando se ejecuta en repositorios no confiables que contienen una configuración de Yarn maliciosa. En las versiones afectadas, la detección del gestor de paquetes ejecutaba yarn --version desde el directorio del proyecto, lo que podría hacer que Yarn cargara y ejecutara un yarnPath controlado por el proyecto desde .yarnrc.yml. Un atacante que controla el contenido del repositorio podría causar la ejecución de código cuando un usuario o sistema de CI ejecuta los comandos de conversión afectados turbo, @turbo/codemod o @turbo/workspace. Esta vulnerabilidad se corrige en la versión 2.9.14.","source":"nvd"}],"published":"2026-05-15T15:45:45.252Z","modified":"2026-10-26T14:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":0,"rating":"NONE"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":0,"rating":"NONE"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-426"],"affected":[{"ranges":[{"version":">= 1.1.0, < 2.9.14","status":"affected"}],"vendor":"vercel","product":"turborepo","source":"cvelist"},{"ranges":[{"version":">= 2.3.4, < 2.9.14","status":"affected"}],"vendor":"@turbo","product":"codemod","source":"cvelist"},{"ranges":[{"version":">= 2.3.4, < 2.9.14","status":"affected"}],"vendor":"@turbo","product":"workspaces","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"2.9.14"}],"ecosystem":"npm","package":"turbo","purl":"pkg:npm/turbo","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.3.4","status":"affected","fixed":"2.9.14"}],"ecosystem":"npm","package":"@turbo/codemod","purl":"pkg:npm/%40turbo/codemod","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.3.4","status":"affected","fixed":"2.9.14"}],"ecosystem":"npm","package":"@turbo/workspaces","purl":"pkg:npm/%40turbo/workspaces","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.1.0","fixed":"2.9.14"}],"vendor":"vercel","product":"turborepo","cpe":"cpe:2.3:a:vercel:turborepo:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/turborepo/security/advisories/GHSA-3qcw-2rhx-2726","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45772","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/turborepo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-15T17:53:36.882Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45772","url":"https://www.cve.org/CVERecord?id=CVE-2026-45772","licence":"CVE Terms of Use","modified":"2026-05-15T17:54:06.401Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3qcw-2rhx-2726","url":"https://github.com/advisories/GHSA-3qcw-2rhx-2726","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.443Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45772","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45772","licence":"Public domain","modified":"2026-10-26T14:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:21.816Z","epss":{"score":0.00386,"percentile":0.34795,"date":"2026-12-01T12:00:22.000Z"}}