Skip to content

Bump cross-spawn from 7.0.6 to 7.1.0 in /packages/cli - #17312

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/packages/cli/cross-spawn-7.1.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/packages/cli/cross-spawn-7.1.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps cross-spawn from 7.0.6 to 7.1.0.

Release notes

Sourced from cross-spawn's releases.

v7.1.0

Security

This release fixes two vulnerabilities that affect Windows only:

  • Command injection when spawning batch files (GHSA-ghv9-86vm-4v8m, high). Arguments passed to batch files outside node_modules/.bin, such as npm.cmd or globally installed package shims, could break out of their quotes and run arbitrary commands. %VAR% and !VAR! could also be expanded in some environments.
  • Argument injection via backslashes before a double quote (GHSA-m6qr-m48x-3xhh, medium). Since 7.0.4, arguments with two or more backslashes before a double quote, or at their end, could split into extra arguments or swallow the following ones.

Please upgrade. cross-spawn@6 users can upgrade to 6.0.7.

Thanks to Duong Bui Thai for privately reporting both, to @​mohd-akram for reporting the batch file injection in #171, and to @​trackoor and @​ogffx for independently reporting and fixing the backslash issue in #188 and #190.

Behaviour changes

These only affect Windows, when a command runs through cmd.exe, i.e. batch files and other non-executable commands:

  • Line breaks now throw a TypeError. cmd.exe can't escape them, so arguments with line breaks used to be silently cut short. Both spawn() and spawn.sync() now throw synchronously instead.
  • Inner double quotes are escaped as "" for batch files. Programs called by batch files that don't follow the Microsoft C runtime conventions, such as those written in Go or that use CommandLineToArgvW, may now split arguments containing double quotes differently.
  • cmd.exe runs with /e:on /v:off. This also applies to the batch file itself, e.g. one relying on delayed expansion being enabled in the registry.
  • Batch files that read an argument unquoted with %~1 remain unsafe, as they always were. Please quote it, e.g. "%~1", or forward the arguments with %*.

Please see the new Windows argument escaping section of the README.

Other changes

  • Close the file descriptor when reading a shebang fails (#187). Thanks to @​xiehuanyi.
Changelog

Sourced from cross-spawn's changelog.

7.1.0 (2026-11-28)

Bug Fixes

  • close the file descriptor when reading a shebang fails (9924b88)
  • escape commands and arguments safely when running them through cmd.exe (244ffea)
Commits
  • 515dc55 chore(release): 7.1.0
  • 4fcac7b docs: document Windows argument escaping and its limitations
  • 244ffea fix: escape commands and arguments safely when running them through cmd.exe
  • 9924b88 fix: close the file descriptor when reading a shebang fails
  • 462a846 test: support unit tests next to source files
  • 7b062e4 chore: avoid running ci twice on pull requests
  • f21818a chore: replace appveyor with github workflows windows runners
  • 6c41bf6 test: use process.ppid instead of wmic in win-ppid fixture
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Devin Review

Bumps [cross-spawn](https://github.com/moxystudio/node-cross-spawn) from 7.0.6 to 7.1.0.
- [Release notes](https://github.com/moxystudio/node-cross-spawn/releases)
- [Changelog](https://github.com/moxystudio/node-cross-spawn/blob/master/CHANGELOG.md)
- [Commits](moxystudio/node-cross-spawn@v7.0.6...v7.1.0)

---
updated-dependencies:
- dependency-name: cross-spawn
  dependency-version: 7.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from workers-devprod as a code owner December 1, 2026 11:44
@dependabot dependabot Bot added dependencies Used by dependabot to mark PRs as updates to dependencies. javascript Pull requests that update javascript code labels Dec 1, 2026
@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Dec 1, 2026
@workers-devprod
workers-devprod requested review from a team and penalosa and removed request for a team December 1, 2026 11:44
@workers-devprod

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • packages/cli/package.json: [@cloudflare/wrangler]

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 2 potential issues.

Devin Review

Comment thread packages/cli/package.json
"chalk": "catalog:default",
"ci-info": "catalog:default",
"cross-spawn": "7.0.6",
"cross-spawn": "7.1.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Stale lockfile blocks workspace installs

The cross-spawn bump leaves the CLI lockfile entry at 7.0.6. The CI install step rejects the mismatch before builds or tests can run.

Learn more

The workspace lockfile records which version each workspace package requests and which version pnpm resolves. The CLI lockfile entry still records 7.0.6 for both. The PR checks install dependencies through the shared dependency action, which uses --frozen-lockfile and cannot reconcile the mismatch.

Example: On a clean checkout of this PR, the Checks job requests a frozen install. The CLI requests 7.1.0 while the lockfile records 7.0.6, so the install fails before validation starts.

Recommended fix: Run pnpm install --no-frozen-lockfile from the workspace root using the repository-pinned pnpm version and commit the generated lockfile. Verify that pnpm install --frozen-lockfile succeeds with the regenerated lockfile.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread packages/cli/package.json
"chalk": "catalog:default",
"ci-info": "catalog:default",
"cross-spawn": "7.0.6",
"cross-spawn": "7.1.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Windows argument handling needs a smoke test

The command tests mock spawn, so they cannot catch Windows argument changes. runFrameworkGenerator forwards user arguments through that path when scaffolding projects.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Minor issues — The cross-spawn bump changes only packages/cli/package.json. pnpm-lock.yaml still pins 7.0.6, so the pnpm install --frozen-lockfile step that CI and the release workflows run (.github/actions/install-dependencies/action.yml:65) will fail until the lockfile is regenerated.

Findings: 1 warning (1 is an inline comment on the diff)

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #17312.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## WARNING (1)

### [Code Quality] pnpm-lock.yaml still pins cross-spawn 7.0.6 for packages/cli (pnpm-lock.yaml:1869-1871). The `pnpm install --frozen-lockfile` step at .github/actions/install-dependencies/action.yml:65, used by the CI and release workflows, will fail.
- **File:** packages/cli/package.json:79

📋 Code Quality: ⚠️ 1 warning

pnpm-lock.yaml was not updated for the cross-spawn 7.1.0 bump.

Recommendation: 📝 Minor Comments

  • [WARNING] pnpm-lock.yaml still pins cross-spawn 7.0.6 for packages/cli (pnpm-lock.yaml:1869-1871). The pnpm install --frozen-lockfile step at .github/actions/install-dependencies/action.yml:65, used by the CI and release workflows, will fail. (packages/cli/package.json:79)
View full review

The lockfile does not match the manifest.

  • packages/cli/package.json:79 now asks for "cross-spawn": "7.1.0".
  • The packages/cli importer in pnpm-lock.yaml:1869-1871 still records specifier: 7.0.6 / version: 7.0.6. There is no cross-spawn@7.1.0 package entry.
  • The shared install step runs pnpm install --frozen-lockfile (.github/actions/install-dependencies/action.yml:65). The test, changesets/release and prerelease workflows all use that step, so their installs will fail on this branch, and on main if this is merged as-is.

Fix: run pnpm install and commit the updated pnpm-lock.yaml.

Other dependents such as packages/create-cloudflare and several transitive dependencies resolve to cross-spawn@7.0.6 and would stay on it. The Windows security fix in 7.1.0 would reach only packages/cli.


✅ All other checks passed

🔒 Security: ✅ LGTM

No security issues in this change. The upgrade picks up upstream fixes for Windows command and argument injection, once the lockfile is updated.


📝 Documentation: ✅ LGTM

No documentation issues.


Reviewed commit: bddae767

Comment thread packages/cli/package.json
"chalk": "catalog:default",
"ci-info": "catalog:default",
"cross-spawn": "7.0.6",
"cross-spawn": "7.1.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ WARNING · Code Quality

pnpm-lock.yaml still pins cross-spawn 7.0.6 for packages/cli (pnpm-lock.yaml:1869-1871). The pnpm install --frozen-lockfile step at .github/actions/install-dependencies/action.yml:65, used by the CI and release workflows, will fail.

This line bumps cross-spawn to 7.1.0, but this pull request does not change pnpm-lock.yaml. Its packages/cli importer (lines 1869-1871) still records specifier: 7.0.6, and there is no cross-spawn@7.1.0 entry. The shared install step runs pnpm install --frozen-lockfile (.github/actions/install-dependencies/action.yml:65), and test, changesets and prerelease all use it. Those installs will fail with an outdated-lockfile error on this branch, and on main after merge. Run pnpm install and commit the regenerated lockfile (or ask Dependabot to recreate the pull request).

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

Labels

dependencies Used by dependabot to mark PRs as updates to dependencies. javascript Pull requests that update javascript code

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant