CVE-2021-39134
No exploitation reported by the sources we read.
- Published2021-08-31
- WeaknessCWE-178 · CWE-61
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-08-3117:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 20.3 | = 20.3.3 | no fix published | NVD |
| 21.2 | = 21.2.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.8 | < 2.8.2 | 2.8.2 | NVD · OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.0 | < 1.0.1.1 | 1.0.1.1 | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- nodejsopenEuler:20.03-LTS-SP3all versions · fixed in 12.22.11-1.oe1
- nodejsopenEuler:20.03-LTS-SP2all versions · fixed in 12.22.11-1.oe1
- nodejsopenEuler:20.03-LTS-SP1all versions · fixed in 12.22.11-1.oe1
- nodejsMageia:8all versions · fixed in 14.17.6-1.mga8
- nodejsCleanStartall versions · fixed in 14.17.6-r0and 3 other packages
- nodejsAlpine:v3.24all versions · fixed in 14.17.6-r0
- nodejsAlpine:v3.23all versions · fixed in 14.17.6-r0
- nodejsAlpine:v3.22all versions · fixed in 14.17.6-r0
28 more package ranges on OSV.dev
Vendor advisories
- CVE-2021-39134 Red Hat Product Security
nodejs-arborist: symlink following vulnerability
Fix
Advisories and patches
- cert-portal.siemens.comPatch
- github.comMitigation
- www.oracle.comPatch
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-11-19
- Metasploit modules
- none listed Metasploit Framework
Sources
- CNACVSS 3.18.2known since 2026-10-23
- NVDCVSS 3.17.8read 2026-10-23
- NVDCVSS 2.04.4read 2026-10-23
- CNAweakness (CWE)CWE-61known since 2026-10-23
- NVDweakness (CWE)CWE-178read 2026-10-23
- FIRST EPSSEPSS score0.6 %2026-11-18
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2021-08-31
Identifiers
- EUVD-2021-1513same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-2h3h-q99f-3fhcsame flawGitHub Advisory Database · CC-BY-4.0
- MGASA-2021-0463advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1620advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:1552-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:1574-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:3940-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2021:3964-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- SUSE-SU-2021:3886-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3940-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:3964-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0101-1advisory covering several CVEsSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 2021-08-31
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-2h3h-q99f-3fhc
Frequently asked questions
What is CVE-2021-39134?
Is CVE-2021-39134 actively exploited?
What is the CVSS score for CVE-2021-39134?
Running @npmcli/arborist? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-2h3h-q99f-3fhc
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0