Skip to content

fix(deps): upgrade tar to 8.0.2 - #3396

Open
petervdv wants to merge 1 commit into
nodejs:mainfrom
petervdv:fix/upgrade-tar-8
Open

petervdv wants to merge 1 commit into
nodejs:mainfrom
petervdv:fix/upgrade-tar-8

Conversation

@petervdv

@petervdv petervdv commented Dec 2, 2026

Copy link
Copy Markdown
Checklist
  • npm install && npm run lint && npm test passes, with one exception: addon works with renamed host executable fails on my machine (macOS arm64, Node 26.12.1) with a libnode.147.dylib loading error. It fails the same way on main, so I believe it's my local Node build and not this change.
  • commit message follows commit guidelines
Description of change

Fixes #3395.

tar 7 is affected by a series of advisories published on 1 and 2 December that are only fixed in tar 8, the last of them in 8.0.2 (for example GHSA-25mm-r35j-6hgm and GHSA-7c32-79xj-j3jp).

tar 8 is a new API without Node.js streams (migration notes), so bumping the version alone makes the header download hang: tar.extract() was the last stream in the pipeline in lib/install.js. It now receives the pipeline's output through the input option. The other call, which extracts a local tarball with file, works unchanged. The engines range already satisfies tar 8's Node 22 requirement.

No new tests: the existing parallel install tests cover both extraction paths when run with FULL_TEST=1, and they hang without the lib/install.js change.

What I checked locally, comparing tar 7.5.24 and tar 8.0.3:

  • Installing the Node 26.12.1 headers gives identical files, directories and permissions, for both the download and the --tarball path.
  • A truncated archive and a checksum mismatch are still rejected.

I could only test on macOS, so I'm relying on CI for Linux and Windows.

Assisted by Claude Fable 5.2

tar 7 is affected by a series of advisories published on 1 and 2
December 2026 that are only fixed in tar 8, the last of them in 8.0.2.

tar 8 no longer exposes Node.js streams, so extract() can't be the
last stream of the download pipeline. Pass the pipeline's output to
it through the input option instead.

Fixes: nodejs#3395
runa-takken Bot pushed a commit to webbertakken/lomanpsychologie-nl that referenced this pull request Dec 2, 2026
Clears GHSA-25mm-r35j-6hgm and the other node-tar advisories that
tar 7.5.24 still falls inside (17 in the GitHub advisory database).
No 7.x release clears both GHSA-25mm and GHSA-ph3c-p786-j4rp, so
8.x is the only line that clears them all.

tar is reached only through node-gyp, a dependency of fsevents, which
runs no install script, so nothing in this repository executes it.
node-gyp 13.1.0 still calls the tar 7 API, which tar 8 removed.
Drop this resolution once node-gyp depends on tar 8
(nodejs/node-gyp#3396).
jstradej added a commit to jstradej/strideterm that referenced this pull request Dec 2, 2026
* chore(audit): accept tar 7 advisories for build tooling until 2026-12-31

tar is reached only via app-builder-lib and node-gyp. The fixes exist
only in tar 8, whose extract() no longer returns a stream that node-gyp
pipes into, so an override would break native-module rebuilds. Remove
once nodejs/node-gyp#3396 and electron-builder#10683 land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): batch dependabot bumps (#391-#393)

- @lucide/vue 1.83.0 -> 1.84.0 (#391)
- lint-staged 17.6.2 -> 17.6.3 (#392)
- ws 8.23.0 -> 8.23.1 (#393)
- tar override ^7.5.22 -> ^7.5.24 (GHSA-ph3c-p786-j4rp)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Jaromir Stradej <jarek@stradej.cz>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
rovinoscr added a commit to Rovinos-AI/rovinos-ai-harness that referenced this pull request Dec 2, 2026
node-gyp 13.1.0 still depends on tar ^7.5.7, which is affected by
GHSA-25mm-r35j-6hgm and related advisories. Force that descriptor to
tar 8.0.2, matching upstream nodejs/node-gyp#3396. Remove the resolution
once a node-gyp release depends on tar 8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Oscar Vindas <oscarvindas@microsoft.com>
ph-cardoso added a commit to frimbus-lab/partycast that referenced this pull request Dec 2, 2026
…d update dependencies (#49)

* fix(deps): tar 8.0.2 and cross-spawn 7.1.2 for 19 Dependabot alerts

cross-spawn 7.0.6 (GHSA-ghv9-86vm-4v8m) re-resolves to 7.1.2 inside the
existing ^7 ranges of builder-util, @malept/cross-spawn-promise and execa.

Every tar 7 is affected by 17 advisories fixed only in tar 8, the last in
8.0.2 (GHSA-7c32-79xj-j3jp), and no release of electron-builder (26.18.1)
or node-gyp (13.1.0) depends on tar 8 yet, so an override forces 8.0.2,
the newest release past the three-day window.

tar 8 drops Node.js streams. node-gyp 12.4.0 passes one to tar.extract()
when it downloads headers, which fails with "extract needs input or file",
so node-gyp carries the upstream fix (nodejs/node-gyp#3396) as a pnpm
patch until a release depends on tar 8. electron-builder's calls
(extracting toolsets with `file`, creating tar.* targets) work unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update Rust crates within the release-age window

cargo update, with the crates published in the last three days pinned
back (http 1.5.0, image-webp 0.2.4, jiff 1.0.3, rstest 0.29.0, rustls
0.23.46). sha2 stays at 0.11.1: 0.11.2 is yanked and 0.11.3 is too new.
curve25519-dalek 5.0.0 moves to 5.1.0, the release that fixes
RUSTSEC-2026-0620; the ignore stays in deny.toml while age 0.11 keeps
curve25519-dalek 4.1.3 in the tree (#30).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update Vitest to 5.1.2 and @types/node to 26.6.11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update Vite to 8.4.0, lucide-react to 1.84.0 and @types/react to 19.3.3

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update electron-builder to 26.18.1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update Electron to 45.5.0

Chromium 156.0.8078.109 and renderer crash fixes in the 45 line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update @fast-check/vitest to 0.6.0

0.6.0 moves time limits and life-cycle hooks to plugins; the tests use
neither, and FC_SEED still fixes the seed in the test names Stryker reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* chore(deps): update pnpm, cargo-deny, zizmor, lefthook, uv and Schemathesis

pnpm 12.24.0, cargo-deny 0.22.2, zizmor 1.33.1, lefthook 2.2.4, uv
0.13.10 and Schemathesis 4.34.4, the newest releases past the three-day
window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
jquintanilla4 added a commit to jquintanilla4/canva_banana that referenced this pull request Dec 2, 2026
Pass the checksum pipeline output as tar.extract input, as proposed in nodejs/node-gyp#3396. Apply the compatibility patch during npm install until node-gyp ships its own fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade tar dependency to 8.0.2

1 participant