Skip to content

chore(deps): cross-spawn 7.1.0 in both lockfiles - #190

Merged
alejoamiras merged 2 commits into
mainfrom
deps/cross-spawn-7-1
Dec 5, 2026
Merged

alejoamiras merged 2 commits into
mainfrom
deps/cross-spawn-7-1

Conversation

@alejoamiras

Copy link
Copy Markdown
Collaborator

What

Lockfile-only refresh of cross-spawn to 7.1.0. No package.json changes; one entry changes in each lockfile.

Lockfile Before After Reached through
yarn.lock 7.0.3 7.1.0 eslint 8.53.0 and 8.57.0, lint-staged > execa 8.0.1, glob > foreground-child 3.3.0
services/network-smoke/toolchain/package-lock.json 7.0.6 7.1.0 jest > execa 5.1.1, glob > foreground-child 3.3.1

Why

  • Fixes GHSA-ghv9-86vm-4v8m (critical): command injection through cmd.exe when spawning batch files on Windows. Closes the two open alerts for it (one per lockfile).
  • Also takes the workspace lock past GHSA-3xgq-45jj-v275 (ReDoS in argument escaping, fixed in 7.0.5).
  • cross-spawn is development tooling here (lint, the commit hook, tests), and CI and the images run on Linux only, so the flaw was not reachable; this clears the alerts.

7.1.0 is the newest release inside every dependent's range that has passed the 7-day npmMinimalAgeGate. The gate was not bypassed: yarn up -R cross-spawn picked 7.1.0 itself, and the npm lock was produced with npm update --package-lock-only --ignore-scripts --before=<7 days ago> cross-spawn.

What 7.1.0 contains

Checked against the published tarballs (7.0.3, 7.0.6, 7.1.0), which match the v7.1.0 tag byte for byte:

  • Windows cmd.exe escaping (lib/parse.js, lib/util/escape.js) and a file descriptor now closed in a finally (lib/util/readShebang.js).
  • No new dependency, no install or lifecycle script, no new network, file-system or environment access, no encoded or minified code.
  • Every changed runtime path sits behind the process.platform === 'win32' check: spawn and spawn.sync behave on Linux as before.
  • The lock's integrity equals the registry's; Yarn's cached zip holds the same files as the npm tarball.

Known follow-up

7.1.0 is still affected by GHSA-w3gc-668g-rf8f (high, Windows only, fixed in 7.1.1), published after this refresh was planned; 7.1.2 also fixes a Windows regression of 7.1.0. Both are newer than the age gate allows today, and neither changes a non-Windows code path. A later refresh picks up 7.1.2 once it is old enough.

How it was tested

  • yarn install --immutable, yarn build, yarn lint, yarn test: all exit 0 (936 tests passed, 3 skipped; the skips are environment-gated).
  • Toolchain lock: npm ci --ignore-scripts --dry-run exits 0, and exits 1 on a deliberately drifted copy; the smoke runner's own lock check passes.
  • Not run locally: a full toolchain install and the network smoke; the smoke workflow on this PR covers them.

Review

One round, both reviewers approve: the diff touches only the two entries, every dependent resolves to 7.1.0, the tarball matches the tag, and no Linux code path changes. Both pointed out the follow-up above.

🤖 Generated with Claude Code

alejoamiras and others added 2 commits December 5, 2026 19:18
Lockfile only: no package.json changes. The one cross-spawn entry
(^7.0.2 from eslint 8.53.0 and 8.57.0, ^7.0.3 from lint-staged's execa
8.0.1, ^7.0.0 from glob's foreground-child 3.3.0) moves 7.0.3 -> 7.1.0, the
newest release inside those ranges published at least 7 days ago
(npmMinimalAgeGate); 7.1.1 and 7.1.2 are newer than the gate allows.
Only its version, resolution and checksum change, with the same
dependencies and no install script.

Fixes GHSA-ghv9-86vm-4v8m (critical; command injection through cmd.exe
when spawning batch files on Windows), and GHSA-3xgq-45jj-v275 (high;
ReDoS in argument escaping on Windows, fixed in 7.0.5). Every runtime
change between 7.0.3 and 7.1.0 sits behind a `process.platform ===
'win32'` check; on Linux the package behaves as before.

  yarn up -R cross-spawn

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lockfile only: the toolchain's package.json, its overrides and the Aztec
6.0.0 pins are unchanged. cross-spawn (^7.0.3 from jest's execa 5.1.1,
^7.0.6 from glob's foreground-child 3.3.1) moves 7.0.6 -> 7.1.0, the newest
release inside those ranges published at least 7 days ago; only its
version, tarball URL and integrity change, with the same dependencies
and no install script. Fixes GHSA-ghv9-86vm-4v8m (critical; command
injection through cmd.exe when spawning batch files on Windows); on
Linux the package behaves as before.

The smoke installs with `npm ci --ignore-scripts`. Produced with npm
11.19.1:

  npm update --prefix services/network-smoke/toolchain --package-lock-only \
    --ignore-scripts --no-audit --no-fund \
    --before=2026-11-28T19:09:57.000Z cross-spawn

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alejoamiras
alejoamiras merged commit 9f3c735 into main Dec 5, 2026
30 checks passed
@alejoamiras
alejoamiras deleted the deps/cross-spawn-7-1 branch December 5, 2026 19:31
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.

1 participant