---
title: "GHSA-mpwj-fcr6-x34c: Yarn untrusted search path vulnerability"
description: "High severity. Yarn untrusted search path vulnerability. Affects yarn; fixed in 1.22.13."
url: https://inlinr.com/advisories/GHSA-mpwj-fcr6-x34c
lang: en
---

[Packages](https://inlinr.com/packages) / [yarn](https://inlinr.com/packages/yarn) / [Security](https://inlinr.com/packages/yarn/security)

High Vulnerability GHSA-mpwj-fcr6-x34c CVE-2021-4435 Published 4 Feb 2024

# Yarn untrusted search path vulnerability

Your version 

Affected releases · [yarn](https://inlinr.com/packages/yarn)

- 1.x 1.0.0 – 1.22.12 Fixed in 1.22.13
- 0.28.x and older 0.1.0 – 0.28.4 No fix, no longer updated

On 1.x, the newest line:

```
npm install yarn@1.22.13
```

Every release on a timeline

2.x 

1. Not affected

2.4.3  
1 release

1.x 

1. Affected

1.0.0 – 1.22.12  
51 releases
2. Fixed

1.22.13 – 1.22.22  
10 releases, latest

0.x 

1. Affected

0.1.0 – 0.28.4  
56 releases

118 stable releases of yarn, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable with local access, with no account and a user to do something.

- **Confidentiality**: high
- **Integrity**: high
- **Availability**: high

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

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-4435 "https://nvd.nist.gov/vuln/detail/CVE-2021-4435")  
nvd.nist.gov/vuln/detail/CVE-2021-4435
- [Fix commit](https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1 "https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1")  
67fcce8
- [Reference](https://access.redhat.com/security/cve/CVE-2021-4435 "https://access.redhat.com/security/cve/CVE-2021-4435")  
access.redhat.com/security/cve/CVE-2021-4435
- [Reference](https://bugzilla.redhat.com/show%5Fbug.cgi?id=2262284 "https://bugzilla.redhat.com/show_bug.cgi?id=2262284")  
bugzilla.redhat.com/show\_bug.cgi
- [Package](https://github.com/yarnpkg/yarn "https://github.com/yarnpkg/yarn")  
github.com/yarnpkg/yarn
- [Reference](https://github.com/yarnpkg/yarn/releases/tag/v1.22.13 "https://github.com/yarnpkg/yarn/releases/tag/v1.22.13")  
github.com/yarnpkg/yarn/releases/tag/v1.22.13

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
