GHSA-2h3h-q99f-3fhc · Severity: high · Ecosystem: npm — @npmcli/arborist vulnerable to UNIX Symbolic Link (Symlink) Following
`@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.
Conclusion & alert: CVE-2021-39134 is rated Moderate Risk (57.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.72%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-03-27 | 1.29% | 0.72% | -0.57% |
| 2 | 2025-11-21 | 1.10% | 1.29% | +0.19% |
| 3 | 2025-11-18 | — | 1.10% | — |
Full EPSS history (17 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.2 | 3.1 | HIGH |
|
1.8 | 5.8 | [email protected] |
| 7.8 | 3.1 | HIGH |
|
1.8 | 5.9 | [email protected] |
| 4.4 | 2.0 | MEDIUM |
|
3.4 | 6.4 | [email protected] |
GHSA-2h3h-q99f-3fhc · Severity: high · Ecosystem: npm — @npmcli/arborist vulnerable to UNIX Symbolic Link (Symlink) Following
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2021-39134: 1 source package rows (nodejs); 9 state rows across 9 repos (3.11-main, 3.12-main, 3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 9, open 0. | https://security.alpinelinux.org/vuln/CVE-2021-39134 |
debian
|
not yet assigned | CVE-2021-39134 not yet assigned priority: Debian including 1 source packages (npm), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 4, open 1. | https://security-tracker.debian.org/tracker/CVE-2021-39134 |
gentoo
|
low | CVE-2021-39134: 1 GLSA(s) (202405-29), 1 atom(s) (net-libs/nodejs); latest impact low. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2021-39134 |
redhat
|
high | — | https://access.redhat.com/security/cve/CVE-2021-39134 |
suse
|
high | CVE-2021-39134 severity important: SUSE including 32 source package names (12-10.1:nodejs12-12.22.7-4.22.1, 12-10.1:npm12-12.22.7-4.22.1, …), 84 product×package rows across 10 product lines (Container bci/nodejs, SUSE Linux Enterprise Module for Open Buildservice Development Tools 15 SP4, … (10 product lines)): Fixed 76, Known Not Affected 8. | https://www.suse.com/security/cve/CVE-2021-39134/ |
ubuntu
|
medium | CVE-2021-39134 medium priority: Ubuntu including 1 source packages (npm), 15 status rows across 15 suites (bionic, focal, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): ignored 5, not-affected 5, needs-triage 4, released 1. | https://ubuntu.com/security/CVE-2021-39134 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| npmjs | arborist | < 2.8.2 | cpe:2.3:a:npmjs:arborist:*:*:*:*:*:node.js:*:* |
| oracle | graalvm | 20.3.3 | cpe:2.3:a:oracle:graalvm:20.3.3:*:*:*:enterprise:*:*:* |
| oracle | graalvm | 21.2.0 | cpe:2.3:a:oracle:graalvm:21.2.0:*:*:*:enterprise:*:*:* |
| siemens | sinec_infrastructure_network_services | < 1.0.1.1 | cpe:2.3:a:siemens:sinec_infrastructure_network_services:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf | Patch Third Party Advisory |
| https://github.com/npm/arborist/security/advisories/GHSA-2h3h-q99f-3fhc | Mitigation Third Party Advisory |
| https://www.npmjs.com/package/%40npmcli/arborist | |
| https://www.oracle.com/security-alerts/cpuoct2021.html | Patch Third Party Advisory |