Skip to content

multiple dependencies on vulnerable tmp package #7595

Closed

Description

@electrovir

Describe the bug

Installing netlify-cli results in the following npm audit output:

tmp  <=0.2.3
tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter - https://github.com/advisories/GHSA-52f5-9888-hmc6
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/netlify-cli/node_modules/tmp
node_modules/netlify-cli/node_modules/tmp-promise/node_modules/tmp
  external-editor  >=1.1.1
  Depends on vulnerable versions of tmp
  node_modules/netlify-cli/node_modules/external-editor
    inquirer  3.0.0 - 8.2.6 || 9.0.0 - 9.3.7
    Depends on vulnerable versions of external-editor
    node_modules/netlify-cli/node_modules/inquirer
      netlify-cli  >=2.0.0-alpha.1
      Depends on vulnerable versions of inquirer
      node_modules/netlify-cli

Workaround

Normally I would be able to override this in package.json with:

"overrides": {
    "tmp": "0.2.4"
},

However, the netlify-cli also erroneously includes npm-shrinkwrap.json which blocks that (#6731).

Steps to reproduce

  1. npm i netlify-cli
  2. npm audit

Configuration

No response

Environment

N/A

Activity

  1. added
    type: bug
    on Aug 29, 2025
  2. serhalp commented on Oct 7, 2025

    @serhalp
    Member

    This was fixed in v23.5.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions