Skip to content

chore(deps): bump cross-spawn from 7.0.6 to 7.1.0 - #2205

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 4, 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.

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 a team as a code owner December 4, 2026 16:18
@dependabot
dependabot Bot deployed to automation December 4, 2026 16:18 Active
@github-actions github-actions Bot added the p2 label Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
npm/cross-spawn ^7.1.0 UnknownUnknown
npm/cross-spawn ^7.1.0 UnknownUnknown
npm/cross-spawn ^7.1.0 UnknownUnknown
npm/cross-spawn ^7.1.0 UnknownUnknown
npm/cross-spawn ^7.1.0 UnknownUnknown
npm/cross-spawn 7.1.0 🟢 3.6
Details
CheckScoreReason
Code-Review⚠️ 2Found 7/27 approved changesets -- score normalized to 2
Binary-Artifacts🟢 10no binaries found in the repo
Maintained🟢 45 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
Packaging⚠️ -1packaging workflow not detected
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Security-Policy⚠️ 0security policy file not detected
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0

Scanned Files

  • packages/@aws-cdk-testing/cli-integ/package.json
  • packages/@aws-cdk/cdk-assets-lib/package.json
  • packages/@aws-cdk/private-tools/package.json
  • packages/@aws-cdk/toolkit-lib/package.json
  • packages/aws-cdk/package.json
  • yarn.lock

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.56%. Comparing base (dbf7b81) to head (6589054).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2205   +/-   ##
=======================================
  Coverage   92.56%   92.56%           
=======================================
  Files          81       81           
  Lines       13238    13238           
  Branches     1918     1918           
=======================================
  Hits        12254    12254           
  Misses        946      946           
  Partials       38       38           
Flag Coverage Δ
suite.unit 92.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch had an error being deployed

1 failed and 1 active deployments
no-approval — 6589054c Deployed Dec 4, 2026 by dependabot[bot] via prepare #7848
automation — 6589054c Deployed Dec 4, 2026 by dependabot[bot] via Set AutoQueue on PR #2205 #4081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant