CVE-2021-4435: Yarn: untrusted search path

Published Feb 1, 2024
·
Updated

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.

Affected Software

3 affected componentsFixes available
redhat/yarn<1.22.13
1.22.13
npm/yarn<1.22.13
1.22.13
yarnpkg yarn<1.22.13

Event History

Feb 4, 2024
CVE Published
via MITRE·07:16 PM
Data Sourced
via MITRE·07:16 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-4435?

CVE-2021-4435 is classified as a high severity vulnerability due to its potential for executing malicious commands in user environments.

2

How do I fix CVE-2021-4435?

To fix CVE-2021-4435, update Yarn to version 1.22.13 or later.

3

What type of vulnerability is CVE-2021-4435?

CVE-2021-4435 is an untrusted search path vulnerability that affects the Yarn package manager.

4

Who is affected by CVE-2021-4435?

Users who run Yarn commands in directories containing attacker-controlled content are at risk from CVE-2021-4435.

5

What should I do if I suspect exploitation of CVE-2021-4435?

If you suspect exploitation of CVE-2021-4435, immediately update Yarn and review logs for any unauthorized activity.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203