Skip to content

tar ^7.5.21 resolves to 7.5.24, inside 17 published advisory ranges; no 7.x release is clean #11626

Backlog

Description

@lcv-leo

[REQUIRED] Environment info

firebase-tools: 15.37.0
Platform: any (dependency resolution only). Reproduced on Windows 11 with Node v26.14.0 and npm 12.2.3.

[REQUIRED] Test case

A new project whose only dependency is firebase-tools:

{
  "name": "repro-firebase-tools-tar",
  "private": true,
  "devDependencies": {
    "firebase-tools": "15.37.0"
  }
}

[REQUIRED] Steps to reproduce

npm install --package-lock-only --ignore-scripts --no-audit --no-fund
npm ls tar --package-lock-only
npm audit --package-lock-only

No package code runs in these steps.

[REQUIRED] Expected behavior

firebase-tools resolves a tar release that is outside every published advisory range.

[REQUIRED] Actual behavior

npm ls tar --package-lock-only:

[email protected] declares tar ^7.5.21, and [email protected] declares tar ^7.5.7, so npm resolves 7.5.24, the newest 7.x release. npm audit --package-lock-only exits 1 and reports, for tar, the range <=8.0.1 with 17 advisories:

No 7.x release is clean. 7.5.21 is inside 14 of these ranges (all but the four >= 7.5.22 ones, plus GHSA-ph3c-p786-j4rp, >= 7.0.0, < 7.5.24), and 7.5.20 and earlier are also in GHSA-r292-9mhp-454m (<= 7.5.20). Every range ends at 8.0.0 or 8.0.2.

Request

Could firebase-tools move to tar >= 8.0.2 and publish a release? Forcing 8.x from the dependent side (an npm overrides entry) is not a safe workaround: the 8.0 changelog describes a new API (callbacks and Node.js streams removed; Parser, Pack and Unpack are no longer streams).

Equivalent request for node-gyp: nodejs/node-gyp#3395

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions