{"id":"EUVD-2021-1724","revision":"aeb55fd4c3b146d1aef1a47bde58aa98","records":[{"revision":"aeb55fd4c3b146d1aef1a47bde58aa98","observedAt":"2026-11-18T01:48:39.485+00:00","statement":{"source":"euvd","id":"EUVD-2021-1724","aliases":["CVE-2021-39135","GHSA-gmw6-94gg-2rc2"],"title":"`@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 packag…","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 accomplished by extracting package contents into a project's `node_modules` folder. If the `node_modules` folder of the root project or any of its dependencies is somehow replaced with a symbolic link, it could allow Arborist to write package dependencies to any arbitrary location on the file system. Note that symbolic links contained within package artifact contents are filtered out, so another means of creating a `node_modules` symbolic link would have to be employed. 1. A `preinstall` script could replace `node_modules` with a symlink. (This is prevented by using `--ignore-scripts`.) 2. An attacker could supply the target with a git repository, instructing them to run `npm install --ignore-scripts` in the root. This may be successful, because `npm install --ignore-scripts` is typically not capable of making changes outside of the project directory, so it may be deemed safe. This is patched in @npmcli/arborist 2.8.2 which is included in npm v7.20.7 and above. For more information including workarounds please see the referenced GHSA-gmw6-94gg-2rc2.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"severity":null}],"references":["https://www.npmjs.com/package/%40npmcli/arborist","https://github.com/npm/arborist/security/advisories/GHSA-gmw6-94gg-2rc2","https://www.oracle.com/security-alerts/cpuoct2021.html","https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1724","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 31, 2021, 5:10:10 PM","dateUpdated":"Aug 4, 2024, 1:58:18 AM"},"relatedAdvisories":[{"id":"SUSE-SU-2021:3886-1","title":"Security update for nodejs14","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"openSUSE-SU-2021:1574-1","title":"Security update for nodejs12","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"openSUSE-SU-2021:1552-1","title":"Security update for nodejs14","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"openSUSE-SU-2021:3940-1","title":"Security update for nodejs12","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"SSA-389290","title":"SSA-389290: Third-Party Component Vulnerabilities in SINEC INS","vulnerabilityIds":["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"]},{"id":"openSUSE-SU-2021:3964-1","title":"Security update for nodejs14","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"SUSE-SU-2021:3964-1","title":"Security update for nodejs14","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"SUSE-SU-2022:0101-1","title":"Security update for nodejs12","vulnerabilityIds":["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"]},{"id":"SUSE-SU-2021:3940-1","title":"Security update for nodejs12","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"ICSA-22-069-09","title":"Siemens SINEC INS","vulnerabilityIds":["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"]},{"id":"WID-SEC-W-2022-0092","title":"Node.js: Mehrere Schwachstellen ermöglichen Manipulation von Dateien","vulnerabilityIds":["CVE-2021-32803","CVE-2021-32804","CVE-2021-37701","CVE-2021-37712","CVE-2021-37713","CVE-2021-39134","CVE-2021-39135"]},{"id":"openSUSE-SU-2024:11616-1","title":"nodejs14-14.18.1-1.1 on GA media","vulnerabilityIds":["CVE-2021-22959","CVE-2021-22960","CVE-2021-37701","CVE-2021-37713","CVE-2021-39135"]}],"note":"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."},"key":"euvd:EUVD-2021-1724","identifiers":["EUVD-2021-1724","CVE-2021-39135","GHSA-gmw6-94gg-2rc2"]},"retained":false,"historicalAffected":[]}],"coverage":[]}