ADVISORIES

Vulnerability

CVE-2021-39135

`@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.

15 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • ALPINE-CVE-2021-39135

    `@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…

    CVE-2021-39135 Alpine Updated 23 October 2026
  • ALPINE-EDGE-CVE-2021-39135
    CVE-2021-39135 Alpine Updated 18 November 2026
  • DEBIAN-CVE-2021-39135

    `@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…

    CVE-2021-39135 Debian Updated 23 October 2026
  • GHSA-gmw6-94gg-2rc2

    UNIX Symbolic Link (Symlink) Following in @npmcli/arborist

    High CVE-2021-39135 npm Updated 8 July 2026
  • OESA-2022-1620

    nodejs security update

    High CVE-2020-15366CVE-2021-22921CVE-2021-22959CVE-2021-22960 openEuler Updated 18 August 2026
  • SUSE-SU-2021:3886-1

    Security update for nodejs14

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 SUSE Updated 4 February 2026
  • SUSE-SU-2021:3940-1

    Security update for nodejs12

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 SUSE Updated 4 February 2026
  • SUSE-SU-2021:3964-1

    Security update for nodejs14

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 SUSE Updated 4 February 2026
  • SUSE-SU-2022:0101-1

    Security update for nodejs12

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 SUSE Updated 4 February 2026
  • UBUNTU-CVE-2021-39135

    `@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…

    CVE-2021-39135 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2021:1552-1

    Security update for nodejs14

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:1574-1

    Security update for nodejs12

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 openSUSE Updated 4 February 2026
  • openSUSE-SU-2021:3940-1

    Security update for nodejs12

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 openSUSE Updated 7 May 2025
  • openSUSE-SU-2021:3964-1

    Security update for nodejs14

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37712 openSUSE Updated 7 May 2025
  • openSUSE-SU-2024:11616-1

    nodejs14-14.18.1-1.1 on GA media

    CVE-2021-22959CVE-2021-22960CVE-2021-37701CVE-2021-37713 openSUSE Updated 4 February 2026

References