Untrusted Search Path Affecting yarn package, versions <1.22.13-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.3% (22nd 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-CHAINGUARDLATEST-YARN-17368731
  • published18 Jun 2026
  • disclosed4 Feb 2024

Introduced: 4 Feb 2024

CVE-2021-4435  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade Chainguard yarn to version 1.22.13-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream yarn package and not the yarn package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

An untrusted search path vulnerability was found in Yarn. When a victim runs certain Yarn commands in a directory with attacker-controlled content, malicious commands could be executed in unexpected ways.

CVSS Base Scores

version 3.1