Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @turbo/workspaces
  4. ›
  5. CVE-2026-45772

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

May 19, 2026

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.

References

  • github.com/advisories/GHSA-3qcw-2rhx-2726
  • github.com/vercel/turborepo/security/advisories/GHSA-3qcw-2rhx-2726
  • nvd.nist.gov/vuln/detail/CVE-2026-45772

Code Behaviors & Features

Detect and mitigate CVE-2026-45772 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.3.4 before 2.9.14

Fixed versions

  • 2.9.14

Solution

Upgrade to version 2.9.14 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-426: Untrusted Search Path

Source file

npm/@turbo/workspaces/CVE-2026-45772.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 21 May 2026 12:17:48 +0000.