Repository navigation
quint: override tar to 8.1.2 and cross-spawn to 7.1.2 (clears 21 Dependabot alerts) - #1848
bryan-minimal wants to merge 2 commits into
Conversation
…alerts) node-tar's 2026-12-02/03 advisories are fixed only in tar 8, outside quint 0.35.0's ^7 range; cross-spawn 7.1.2 fixes the Windows-only GHSA-ghv9-86vm-4v8m. npm overrides in package.json, lock regenerated. build.sh checks the overridden tar loads, has extract(), and is 8.x. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…to end tar 8's extract() reads the archive and returns a promise, not a stream, so quint's pipeline(createReadStream(archive), tar.extract(...)) fails under the override (quint-co/quint#2110). That path is still reachable via `quint verify --apalache-version <other>` and veil's elan setup. Rewrite the one call to tar 8's form and exercise downloadAndUnpack in the build with a stubbed fetch. Control: without the rewrite the build fails with ERR_MISSING_ARGS in quint's unpack. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clears the 21 open Dependabot alerts on
packages/quint/package-lock.json(1 critical, 19 high, 1 medium, all opened 2026-12-02/03).What
tar7.5.23 → 8.1.2: 20 node-tar advisories (symlink containment bypasses, PAX parsing, memory and CPU amplification). Nearly all are fixed only in 8.0.0; tar has no maintained 7.x line, and quint 0.35.0 asks for^7.5.13. So an npmoverridesentry inpackage.jsonforces 8.1.2. It has no dependencies, so@isaacs/fs-minipass,chownr,minipass,minizlibandyallistleave the tree.cross-spawn7.0.6 → 7.1.2: GHSA-ghv9-86vm-4v8m (the critical; command injection when spawning batch files, Windows only). 7.1.x is within quint's own range; pinned by the sameoverridesblock.npm install --package-lock-only(npm 11.21.3); no other package moves.Exposure, and the one call tar 8 changes
quint uses
tarin one place:dist/src/download.js'sdownloadAndUnpack.getRustEvaluatorPath()returns the packaged evaluator), andquint verify's default Apalache (quint: run quint verify on the packaged apalache, never a download #1627 points it at the packaged one).quint verify --apalache-version <other>, and the veil (Lean) setup, which downloads elan.tar 8's
extract()reads the archive itself and returns a promise instead of a stream (quint-co/quint#2110 notes this), so quint'spipeline(createReadStream(archive), tar.extract(...))would fail under the override.build.shrewrites that one call to tar 8's form,await tar.extract({ file: archive, cwd: unpackDir, strict: true }), which is what #2110 asks upstream to do. It fails the build if the call has moved, so a quint that has switched to tar 8 makes us drop the override and the rewrite.Guard
After
npm ci,build.sh:downloadAndUnpackend to end, with a stubbedfetch()serving a.tar.gzmade in the build: the sha256 check passes and the entry lands with the right contents.Upstream quint-co/quint#2110 (open, 2026-12-02) asks for tar
>=8.0.2; once quint ships that, the override and the rewrite go.Updates keep it
pkgmgr's lockfile-flavor bump rewrites only the
@informalsystems/quintpin inpackage.json(rewrite_package_json_pin, a literal replace) and rerunsnpm install --package-lock-only, so theoverridesblock survives future quint bumps.Tested in a min session (pkgbuild loadout)
min package build --rebuild quintsucceeds with the guard.min check --packages quintpasses, including the standalone tests:version_check, andsimulate(typecheck, plus both simulator backends with QUINT_HOME left empty).Error unpacking …: TypeError [ERR_MISSING_ARGS]: The "streams" argument must be specified. Without the end-to-end check, this PR would have broken--apalache-versionand the veil setup.🤖 Generated with Claude Code