Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. yarn
  4. ›
  5. CVE-2021-4435

CVE-2021-4435: Untrusted Search Path

February 4, 2024 (updated February 13, 2024)

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.

References

  • access.redhat.com/security/cve/CVE-2021-4435
  • bugzilla.redhat.com/show_bug.cgi?id=2262284
  • github.com/advisories/GHSA-mpwj-fcr6-x34c
  • github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1
  • github.com/yarnpkg/yarn/releases/tag/v1.22.13
  • nvd.nist.gov/vuln/detail/CVE-2021-4435

Code Behaviors & Features

Detect and mitigate CVE-2021-4435 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 before 1.22.13

Fixed versions

  • 1.22.13

Solution

Upgrade to version 1.22.13 or above.

Impact 7.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-426: Untrusted Search Path

Source file

npm/yarn/CVE-2021-4435.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:16:07 +0000.