Untrusted Search Path Affecting @turbo/codemod package, versions >=2.3.4 <2.9.13-canary.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-TURBOCODEMOD-16773153
  • published20 May 2026
  • disclosed19 May 2026
  • creditUnknown

Introduced: 19 May 2026

NewCVE-2026-45772  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade @turbo/codemod to version 2.9.13-canary.1 or higher.

Overview

@turbo/codemod is a Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.

Affected versions of this package are vulnerable to Untrusted Search Path in the package manager detection. An attacker can execute arbitrary code by placing a malicious .yarnrc.yml file with a controlled yarnPath in a repository and convincing a user or CI system to run the affected commands in that repository.

Workaround

This vulnerability can be mitigated by avoiding running the affected commands in untrusted repositories and by reviewing or removing .yarnrc.yml files that define yarnPath before execution, especially in CI or automated tooling that processes external projects.

CVSS Base Scores

version 4.0
version 3.1