CVE-2021-39134
published high CVSS 3.1 · 8.2UNIX Symbolic Link (Symlink) Following in @npmcli/arborist
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| npm | — | arborist< 2.8.2 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | nodejs12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| Alpine Linux | v3.11 | nodejs | Fixed | 12.22.6-r0 | Package fix record |
| Alpine Linux | v3.12 | nodejs | Fixed | 12.22.6-r0 | Package fix record |
| Alpine Linux | v3.13 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.14 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.15 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.17 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.18 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.19 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.20 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.21 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.22 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.23 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| Alpine Linux | v3.24 | nodejs | Fixed | 14.17.6-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | nodejs12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12-develaarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12-develppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12-devels390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12-develx86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs12-docsnoarch | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | nodejs14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14-develaarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14-develppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14-devels390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14-develx86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | nodejs14-docsnoarch | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | npm12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | npm12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | npm12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | npm12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12 | npm14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | npm14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | npm14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12 | npm14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12-develaarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12-develppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12-devels390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12-develx86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs12-docsnoarch | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14-develaarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14-develppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14-devels390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14-develx86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | nodejs14-docsnoarch | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP3 | npm14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12-develaarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12-develppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12-devels390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12-develx86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs12-docsnoarch | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14-develaarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14-develppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14-devels390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14-develx86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | nodejs14-docsnoarch | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm14aarch64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm14ppc64le | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm14s390x | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP4 | npm14x86_64 | Advisory build | 14.18.1-6.18.2 | SUSE-SU-2021:3886-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12aarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12ppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12s390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12x86_64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12-develaarch64 | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12-develppc64le | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
| SUSE / openSUSE | SLE-12-SP5 | nodejs12-devels390x | Advisory build | 12.22.9-1.38.1 | SUSE-SU-2022:0101-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
`@npmcli/arborist`, the library that calculates dependency trees and manages the `node_modules` folder hierarchy for the npm command line interface, aims to guarantee that package dependency contracts will be met, and the extraction of package contents will always be performed into the expected folder. This is, in part, accomplished by resolving dependency specifiers defined in `package.json` manifests for dependencies with a specific name, and nesting folders to resolve conflicting dependencies. When multiple dependencies differ only in the case of their name, Arborist's internal data structure saw them as separate items that could coexist within the same level in the `node_modules` hierarchy. However, on case-insensitive file systems (such as macOS and Windows), this is not the case. Combined with a symlink dependency such as `file:/some/path`, this allowed an attacker to create a situation in which arbitrary contents could be written to any location on the filesystem. For example, a package `pwn-a` could define a dependency in their `package.json` file such as `"foo": "file:/some/path"`. Another package, `pwn-b` could define a dependency such as `FOO: "file:foo.tgz"`. On case-insensitive file systems, if `pwn-a` was installed, and then `pwn-b` was installed afterwards, the contents of `foo.tgz` would be written to `/some/path`, and any existing contents of `/some/path` would be removed. Anyone using npm v7.20.6 or earlier on a case-insensitive filesystem is potentially affected. This is patched in @npmcli/arborist 2.8.2 which is included in npm v7.20.7 and above.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| npm | arborist | < 2.8.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-61 CWE-61: UNIX Symbolic Link (Symlink) Following
References
4Provider assertions
2GitHub_M · cna
UNIX Symbolic Link (Symlink) Following in @npmcli/arborist
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 914a28dcbf9f0caa08e656ae0cb25f90e477c551f79df209f718f7c94a3b7bae
- Ingested
- 23 Sep 2026, 07:55:36 UTC
- Source record
- Official CVE record