High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-4435
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:22 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-4435
Complete source record
{
"id": "c24a053db12a8bb17458f012a16fcd843751a48f3552ffad5828da4a4ef00136",
"url": "https://osv.dev/vulnerability/CVE-2021-4435",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-4435",
"summary": "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.",
"evidence": "osv:CVE-2021-4435",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-4435",
"aliases": [
"CVE-2021-4435",
"GHSA-mpwj-fcr6-x34c"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yarnpkg/yarn",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "1c92d6980a4d385993c689c577c627de5face64d"
},
{
"fixed": "67fcce88935e45092ffa2674c08053f1ef5268a1"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:yarnpkg:yarn:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.22.13"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "67fcce88935e45092ffa2674c08053f1ef5268a1"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "1c92d6980a4d385993c689c577c627de5face64d"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.22.13"
}
]
}
}
],
"versions": [
"v1.22.11",
"1.22.11",
"v1.22.10",
"1.22.10",
"v1.22.5",
"v1.22.4",
"v1.22.3",
"v1.22.2",
"v1.22.1",
"v1.22.0",
"v1.21.0",
"v1.19.0",
"v1.18.0",
"v1.17.0",
"v1.16.0",
"v1.15.0",
"v1.14.0",
"v1.13.0",
"v1.12.0",
"v1.11.0",
"v1.10.0",
"v1.9.0",
"v1.8.0",
"v1.7.0",
"v1.6.0",
"v1.5.0",
"v1.4.1",
"v1.4.0",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.1",
"v1.2.0",
"v1.1.0",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.28.0",
"v0.27.0",
"v0.26.0",
"v0.25.0",
"v0.23.0",
"v0.22.0",
"v0.21.0",
"v0.21.0-pre",
"v0.20.0",
"v0.19.0",
"v0.20.0-0",
"v0.18.0",
"v0.17.0",
"v0.18.0-0",
"v0.19.0-0",
"v0.17.0-0",
"v0.15.0",
"v0.15.1",
"v0.14.0",
"v0.13.0",
"v0.12.0",
"v0.11.0",
"v0.10.0",
"v0.9.0",
"v0.8.0",
"v0.7.1",
"v0.7.0",
"pre-release"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4435.json"
}
}
],
"modified": "2026-10-20T10:54:09.697380956Z",
"provider": "osv",
"references": [
"https://access.redhat.com/security/cve/CVE-2021-4435",
"https://github.com/yarnpkg/yarn/releases/tag/v1.22.13",
"https://bugzilla.redhat.com/show_bug.cgi?id=2262284",
"https://github.com/yarnpkg/yarn/commit/67fcce88935e45092ffa2674c08053f1ef5268a1"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-4435",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384908,
"published_at": "2024-02-04T20:15:45.657+00:00"
}