CVE-2026-45772: Turborepo: Unexpected local code execution during Yarn Berry detection

Published May 15, 2026
·
Updated

### 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.

Affected Software

7 affected componentsFixes available
npm/turbo>=1.1.0<2.9.14
npm/@turbo/codemod>=1.1.0<2.9.14
npm/@turbo/workspace>=1.1.0<2.9.14
Vercel Turborepo Node.js>=1.1.0<2.9.14
npm/@turbo/workspaces>=2.3.4<2.9.14
2.9.14
npm/@turbo/codemod>=2.3.4<2.9.14
2.9.14
npm/turbo>=1.1.0<2.9.14
2.9.14

Event History

May 15, 2026
CVE Published
via MITRE·03:45 PM
Data Sourced
via MITRE·03:45 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeaknessAffected Software
May 19, 2026
Advisory Published
via GitHub·07:46 PM
Data Sourced
via GitHub·07:46 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-45772?

CVE-2026-45772 has a severity level classified as low with a CVSS score of 4.0.

2

What impact does CVE-2026-45772 have?

CVE-2026-45772 can lead to arbitrary code execution in untrusted repositories containing malicious Yarn configuration.

3

How can I mitigate CVE-2026-45772?

To mitigate CVE-2026-45772, avoid running Turborepo in untrusted project repositories that might contain harmful Yarn configurations.

4

Which versions of Turborepo are affected by CVE-2026-45772?

CVE-2026-45772 affects certain versions of Turborepo that utilize Yarn for package manager detection.

5

Is there a known fix for CVE-2026-45772?

As of now, updating Turborepo to a patched version or following best practices for repository trustworthiness is recommended to address CVE-2026-45772.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203