← Vulnerability feed

Vulnerability record · CVE-2021-4435 · published 4 February 2024

CVE-2021-4435: Yarnpkg yarn untrusted search path vulnerability

Yarnpkg · Yarn

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.

7.8 CVSS 3.1 High EPSS 0.30% · top 79.6% CWE-426 · Untrusted search path
7.8CVSS 3.1 base score
0.30%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References
17 Jun 2026Last modified by NVD

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.

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

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-4435 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.1CVE-2019-5448Yarnpkg yarn missing encryption vulnerabilityYarn before 1.17.3 is vulnerable to Missing Encryption of Sensitive Data due to HTTP URLs in lockfile causing unencrypted authentication data to be s…EPSS 0.67%7.8CVE-2019-10773Yarnpkg yarn link following vulnerabilityIn Yarn before 1.21.1, the package install functionality can be abused to generate arbitrary symlinks on the host filesystem by using specially craft…EPSS 1.5%7.5CVE-2020-8131Yarnpkg yarn path traversal vulnerabilityArbitrary filesystem write vulnerability in Yarn before 1.22.0 allows attackers to write to any path on the filesystem and potentially lead to arbitr…EPSS 5.2%5.9CVE-2019-15608Yarnpkg yarn toctou race condition vulnerabilityThe package integrity validation in yarn < 1.19.0 contains a TOCTOU vulnerability where the hash is computed before writing a package to cache. It's …EPSS 1.8%5.3CVE-2025-8262Yarnpkg yarn uncontrolled resource consumption vulnerabilityA vulnerability was found in yarnpkg Yarn up to 1.22.22. It has been classified as problematic. Affected is the function explodeHostedGitFragment of …EPSS 0.75%4.8CVE-2025-9308Yarnpkg yarn uncontrolled resource consumption vulnerabilityA vulnerability has been found in yarnpkg Yarn up to 1.22.22. This impacts the function setOptions of the file src/util/request-manager.js. Such mani…EPSS 0.21%7.8CVE-2012-1854Microsoft Office VBE6.dll Untrusted Search Path Privilege EscalationVBE6.dll in Microsoft Office 2003 SP3, 2007 SP2/SP3, 2010 Gold/SP1, Microsoft VBA, and the Summit Microsoft VBA SDK loads a library from an untrusted…KEVEPSS 21%analysed7.8CVE-2022-23748Audinate Dante mDNSResponder.exe DLL sideloading flawmDNSResponder.exe in Audinate's Dante Application Library improperly specifies how it loads a DLL, including the folder and conditions, allowing a ma…KEVEPSS 9.1%analysed

Source: NIST National Vulnerability Database (record CVE-2021-4435), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.