# CVE-2021-4435: Yarn: untrusted search path

- Severity: High 7.7 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 30% of CVEs (2026-12-01)
- Published: 2024-02-04T19:16:35.651Z
- Modified: 2026-09-10T03:50:06.425Z
- Also known as: GHSA-mpwj-fcr6-x34c
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: fedora

## 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.

(As written by CVE List.)

## Affected

- yarn: no versions given (not affected: 1.22.13)
- yarnpkg: no versions given
- yarn (npm): before 1.22.13
- yarnpkg yarn: before 1.22.13

## Every score

- fedora: CVSS:3.1 7.7 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.7 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2021-4435> (third-party-advisory, vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2262284> (issue-tracking, web)
- <https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1> (patch, web)
- <https://github.com/yarnpkg/yarn/releases/tag/v1.22.13> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4435> (advisory)
- <https://github.com/yarnpkg/yarn> (package)

## Sources

- CVE List: [CVE-2021-4435](https://www.cve.org/CVERecord?id=CVE-2021-4435), CVE Terms of Use, modified 2025-06-17
- GitHub Advisory Database: [GHSA-mpwj-fcr6-x34c](https://github.com/advisories/GHSA-mpwj-fcr6-x34c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-4435](https://nvd.nist.gov/vuln/detail/CVE-2021-4435), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4435 · Whole record: https://cve.day/CVE-2021-4435.json · Rebuilt by cve.day 2026-11-25T22:24:37.240Z
