CVE-2021-4435 - CVE House
Back to Database
Status published High CVE-2021-4435

Yarn: untrusted search path

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-4435

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Red Hat would like to thank Paul Gerste (Sonar) for reporting this issue.

Affected Vendor

Affected Software

yarn, Fedora, Extra Packages for Enterprise Linux
Vulnerable Versions:
1.22.13

Timeline

Official Publish: February 4th, 2024
Last Modified: June 17th, 2025
Added to House: July 21st, 2026

CVSS Vectors

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

Weaknesses (CWE)