UNIX Symbolic Link (Symlink) Following in @npmcli/arborist
Exploitation and risk
Source statusCISA KEV lists vulnerabilities known to be exploited. FIRST EPSS estimates the likelihood of exploitation in the next 30 days. An unavailable score does not mean zero risk.
Which CVEs have scores here?
This view includes predictions for CVE identifiers explicitly listed in public NuGet advisories. Microsoft release pages have their own prediction coverage. Check source status for the scope and latest checks.
No exploitation or prediction data is available here for these CVEs. This does not mean they are safe or unlikely to be exploited.
cve-program · CVE-2021-39134
Published`@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.
- Source published
- 31 Aug 2021 16:55:11 UTC
- Source modified
- 4 Aug 2024 01:58:17 UTC
- Saved here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
euvd · EUVD-2021-1513
Published`@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.
Additional publisher context
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Aug 31, 2021, 4:55:11 PM
dateUpdated: Aug 4, 2024, 1:58:17 AM
11 related source bulletins · separate from aliases
SUSE-SU-2021:3964-1: Security update for nodejs14
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SUSE-SU-2021:3940-1: Security update for nodejs12
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
WID-SEC-W-2022-0092: Node.js: Mehrere Schwachstellen ermöglichen Manipulation von Dateien
CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
openSUSE-SU-2021:3964-1: Security update for nodejs14
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
openSUSE-SU-2021:1574-1: Security update for nodejs12
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
openSUSE-SU-2021:3940-1: Security update for nodejs12
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SUSE-SU-2022:0101-1: Security update for nodejs12
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135 · CVE-2021-44531 · CVE-2021-44532 · CVE-2021-44533 · CVE-2022-21824
openSUSE-SU-2021:1552-1: Security update for nodejs14
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
ICSA-22-069-09: Siemens SINEC INS
CVE-2019-19242 · CVE-2019-19244 · CVE-2019-19317 · CVE-2019-19603 · CVE-2019-19645 · CVE-2019-19646 · CVE-2019-19880 · CVE-2019-19923 · CVE-2019-19924 · CVE-2019-19925 · CVE-2019-19926 · CVE-2020-1971 · CVE-2020-7774 · CVE-2020-8169 · CVE-2020-8177 · CVE-2020-8231 · CVE-2020-8265 · CVE-2020-8284 · CVE-2020-8285 · CVE-2020-8286 · CVE-2020-8287 · CVE-2020-8625 · CVE-2020-9327 · CVE-2020-11655 · CVE-2020-11656 · CVE-2020-13630 · CVE-2020-13631 · CVE-2020-13632 · CVE-2020-13871 · CVE-2020-15358 · CVE-2020-27304 · CVE-2021-3449 · CVE-2021-3450 · CVE-2021-3672 · CVE-2021-3711 · CVE-2021-3712 · CVE-2021-22876 · CVE-2021-22883 · CVE-2021-22884 · CVE-2021-22890 · CVE-2021-22897 · CVE-2021-22898 · CVE-2021-22901 · CVE-2021-22918 · CVE-2021-22921 · CVE-2021-22922 · CVE-2021-22923 · CVE-2021-22924 · CVE-2021-22925 · CVE-2021-22926 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-22945 · CVE-2021-22946 · CVE-2021-22947 · CVE-2021-23362 · CVE-2021-23840 · CVE-2021-25214 · CVE-2021-25215 · CVE-2021-25216 · CVE-2021-25219 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SSA-389290: SSA-389290: Third-Party Component Vulnerabilities in SINEC INS
CVE-2019-19242 · CVE-2019-19244 · CVE-2019-19317 · CVE-2019-19603 · CVE-2019-19645 · CVE-2019-19646 · CVE-2019-19880 · CVE-2019-19923 · CVE-2019-19924 · CVE-2019-19925 · CVE-2019-19926 · CVE-2020-1971 · CVE-2020-7774 · CVE-2020-8169 · CVE-2020-8177 · CVE-2020-8231 · CVE-2020-8265 · CVE-2020-8284 · CVE-2020-8285 · CVE-2020-8286 · CVE-2020-8287 · CVE-2020-8625 · CVE-2020-9327 · CVE-2020-11655 · CVE-2020-11656 · CVE-2020-13630 · CVE-2020-13631 · CVE-2020-13632 · CVE-2020-13871 · CVE-2020-15358 · CVE-2020-27304 · CVE-2021-3449 · CVE-2021-3450 · CVE-2021-3672 · CVE-2021-3711 · CVE-2021-3712 · CVE-2021-22876 · CVE-2021-22883 · CVE-2021-22884 · CVE-2021-22890 · CVE-2021-22897 · CVE-2021-22898 · CVE-2021-22901 · CVE-2021-22918 · CVE-2021-22921 · CVE-2021-22922 · CVE-2021-22923 · CVE-2021-22924 · CVE-2021-22925 · CVE-2021-22926 · CVE-2021-22930 · CVE-2021-22931 · CVE-2021-22939 · CVE-2021-22940 · CVE-2021-22945 · CVE-2021-22946 · CVE-2021-22947 · CVE-2021-23362 · CVE-2021-23840 · CVE-2021-25214 · CVE-2021-25215 · CVE-2021-25216 · CVE-2021-25219 · CVE-2021-27290 · CVE-2021-32803 · CVE-2021-32804 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
SUSE-SU-2021:3886-1: Security update for nodejs14
CVE-2021-22959 · CVE-2021-22960 · CVE-2021-37701 · CVE-2021-37712 · CVE-2021-37713 · CVE-2021-39134 · CVE-2021-39135
- Source published
- Aug 31, 2021, 4:55:11 PM (timezone not stated)
- Source modified
- Aug 4, 2024, 1:58:17 AM (timezone not stated)
- Saved here
- 24 Nov 2026 09:27:46 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
Source: euvd · ENISA EUVD · source terms and attribution apply. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
EUVD CVSS 3.1 · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
nvd · CVE-2021-39134
Published`@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.
Additional publisher context
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-61 · CWE-178
Original publisher date fields
published: 2021-08-31T17:15:08.147
lastModified: 2026-06-17T04:03:08.013
5 source CPE criteria · context only
- cpe:2.3:a:npmjs:arborist:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:npmjs:npm:*:*:*:*:*:*:*:*
- cpe:2.3:a:oracle:graalvm:20.3.3:*:*:*:enterprise:*:*:*
- cpe:2.3:a:oracle:graalvm:21.2.0:*:*:*:enterprise:*:*:*
- cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 31 Aug 2021 17:15:08 UTC
- Source modified
- 17 Jun 2026 04:03:08 UTC
- Saved here
- 24 Oct 2026 19:17:25 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
Source: nvd · NIST NVD usage terms; underlying source attribution retained. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS 3.1 · [email protected] · Secondary · 8.2 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
CVSS 3.1 · [email protected] · Primary · 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0 · [email protected] · Primary · 4.4 AV:L/AC:M/Au:N/C:P/I:P/A:P
osv · GHSA-2h3h-q99f-3fhc
Published### Impact Arbitrary File Creation, Arbitrary File Overwrite, Arbitrary Code Execution `@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. ### Patches 2.8.2 (included in npm v7.20.7 and above) ### Fix and Caveats There are two parts to the fix: 1. Immediately prior to extraction, if the target folder is not a directory, it is moved aside. (If the installation fails, filesystem entries moved aside in this manner are moved back as part of the rollback process.) 2. The `children` map that represents child nodes in the tree is replaced with a case-insensitive map object, such that `node.children.get('foo')` and `node.children.get('FOO')` will return the same object, enabling Arborist to detect and handle this class of tree collision. This second item imposes a caveat on case _sensitive_ filesystems where two packages with names which differ only in case may already exist at the same level in the tree, causing unpredictable behavior in this rare edge case. Note that in such cases, the `package-lock.json` already creates a situation which is hazardous to use on case-sensitive filesystems, and will likely lead to other problems. If affected by this caveat, please run `npm update` to rebuild your tree and generate a new `package-lock.json` file.
- Source published
- 31 Aug 2021 16:04:03 UTC
- Source modified
- 8 Jul 2026 06:27:59 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · GitHub Advisory Database · CC-BY-4.0. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.
CVSS_V3 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Publisher rating · HIGH