Repository navigation
Conversation
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
This was referenced Dec 2, 2026
2 tasks done
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).
1 of 2 tasks
4 tasks done
3 of 18 tasks
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 <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Jaromir Stradej <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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 <[email protected]> Signed-off-by: Oscar Vindas <[email protected]>
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 <[email protected]> * 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 <[email protected]> * chore(deps): update Vitest to 5.1.2 and @types/node to 26.6.11 Co-Authored-By: Claude Opus 5.5 <[email protected]> * 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 <[email protected]> * chore(deps): update electron-builder to 26.18.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> * 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 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
jquintanilla4
added a commit
to jquintanilla4/canva_banana
that referenced
this pull request
Dec 2, 2026
* fix(deps): patch vulnerable npm dependencies * ci: trigger security PR checks * fix(deps): adapt node-gyp header downloads to tar 8 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.
rovinoscr
added a commit
to Rovinos-AI/rovinos-ai-harness
that referenced
this pull request
Dec 2, 2026
* Apply remaining changes Co-authored-by: copilot-swe-agent[bot] <[email protected]> Signed-off-by: Oscar Vindas <[email protected]> * deps: update cross-spawn to 7.1.2 Signed-off-by: rovinoscr <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> * deps: update ws and tar security fixes Signed-off-by: rovinoscr <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> * deps: resolve node-gyp's tar to 8.0.2 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 <[email protected]> Signed-off-by: Oscar Vindas <[email protected]> * Revert "deps: resolve node-gyp's tar to 8.0.2" This reverts commit dbeffe8. Signed-off-by: Oscar Vindas <[email protected]> * security: time-limited exceptions for node-gyp's tar 7.5.23 node-gyp 13.1.0 requires tar ^7 and breaks on tar 8, so its tar 7.5.23 remains after our direct tar pins moved to 8.0.2. Add per-advisory exceptions (GHSA ids for the dependency gate, CVE ids for the image scan) expiring 2026-12-31. Removal tracked by #856. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Oscar Vindas <[email protected]> --------- Signed-off-by: Oscar Vindas <[email protected]> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
|
fyi claude found issues in this patch our patch: async (source) => {
await tar.extract({
input: source.iterator({ destroyOnReturn: false }),
strip: 1,
cwd: tarExtractDir,
filter: isValid,
onwarn
})
for await (const _ of source) { /* drain so ShaSum sees every byte */ }
}repro script: // usage: node repro.cjs <project dir with node_modules/tar> <tgz> <outdir> <mode: plain|fixed>
const { createRequire } = require('module')
const path = require('path')
const fs = require('fs')
const crypto = require('crypto')
const { Readable, Transform } = require('stream')
const { pipeline } = require('stream/promises')
const { setTimeout: sleep } = require('timers/promises')
const [project, tgz, outdir, mode] = process.argv.slice(2)
const tar = createRequire(path.join(project, 'package.json'))('tar')
const bytes = fs.readFileSync(tgz)
const expected = crypto.createHash('sha256').update(bytes).digest('hex')
async function * chunks () {
yield bytes.subarray(0, bytes.length - 8)
await sleep(200)
yield bytes.subarray(bytes.length - 8)
}
let digest = null
const hash = crypto.createHash('sha256')
const shaSum = new Transform({
transform (chunk, _enc, cb) { hash.update(chunk); cb(null, chunk) },
flush (cb) { digest = hash.digest('hex'); cb() }
})
const plain = (source) => tar.extract({ input: source, strip: 1, cwd: outdir })
const fixed = async (source) => {
await tar.extract({ input: source.iterator({ destroyOnReturn: false }), strip: 1, cwd: outdir })
// eslint-disable-next-line no-unused-vars
for await (const _ of source) { /* drain */ }
}
fs.mkdirSync(outdir, { recursive: true })
pipeline(Readable.from(chunks()), shaSum, mode === 'fixed' ? fixed : plain).then(
() => console.log(mode, 'OK files:', fs.readdirSync(outdir).length, 'digest match:', digest === expected),
(err) => console.log(mode, 'REJECTED', err.code, err.message, 'digest:', digest)
)Repro with tar 8.0.5 (same shape as yielding the last 8 bytes after a short delay. It rejects with |
15 of 16 tasks
4 of 7 tasks
cplepage
added a commit
to fullstackedorg/fullstacked
that referenced
this pull request
Dec 2, 2026
- tar, pulled in by node-gyp 13.1.0 (tar ^7.5.7), is overridden to ^8.1.0: every tar 7 has
open advisories (UnpackSync hang, symlink containment bypasses, PAX parsing). node-gyp streams
its headers download into tar.extract(), which tar 8 no longer accepts, so platform/node's
build downloads the Node.js headers itself (checked against SHASUMS256.txt) and passes them
with --tarball; from a file node-gyp extracts with tar.extract({ file }). Both go away once
node-gyp ships tar 8 (nodejs/node-gyp#3396).
- ws (platform/node, puppeteer) 8.22.0 -> 8.23.1, the fixed minimum for the published CLI.
npm audit: 0 vulnerabilities.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
boomer934
added a commit
to boomer934/control-center
that referenced
this pull request
Dec 2, 2026
…#115) The December 2026 node-tar advisories (GHSA-7c32-79xj-j3jp and twelve other high ones) affect every tar 7 release, so the audit step failed on the tar 7.5.21 pinned for node-gyp. No node-gyp release depends on tar 8 yet, and tar 8 dropped Node.js streams, which breaks node-gyp's header download ("extract needs input or file"). Override [email protected]>tar to 8.0.5 and patch node-gyp with the one-line change from nodejs/node-gyp#3396: the downloaded stream is now passed to tar.extract through the input option. Remove both once a node-gyp release ships tar 8. Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Dec 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
npm install && npm run lint && npm testpasses, with one exception:addon works with renamed host executablefails on my machine (macOS arm64, Node 26.12.1) with alibnode.147.dylibloading error. It fails the same way onmain, so I believe it's my local Node build and not this change.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 thepipelineinlib/install.js. It now receives the pipeline's output through theinputoption. The other call, which extracts a local tarball withfile, works unchanged. Theenginesrange 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 thelib/install.jschange.What I checked locally, comparing tar 7.5.24 and tar 8.0.3:
--tarballpath.I could only test on macOS, so I'm relying on CI for Linux and Windows.
Assisted by Claude Fable 5.2