Repository navigation
Update dependency cross-spawn to v7.1.0 [SECURITY] - #1975
Open
renovate[bot] wants to merge 3 commits into
Open
renovate[bot] wants to merge 3 commits into
renovate[bot] wants to merge 3 commits into
Conversation
Deploying mouseterm with
|
| Latest commit: |
8c8f0d9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b2d8bf23.mouseterm.pages.dev |
| Branch Preview URL: | https://renovate-npm-cross-spawn-vul.mouseterm.pages.dev |
dormouse-bot
reviewed
Dec 1, 2026
dormouse-bot
left a comment
Collaborator
There was a problem hiding this comment.
Build & Test fails at "Dependency disclosure is current": website/src/data/dependencies-npm.json still lists cross-spawn 7.0.6. I'm pushing the regenerated snapshot (a one-line 7.0.6 → 7.1.0 change from node website/scripts/generate-deps.js).
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This branch has not been deployed
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.
This PR contains the following updates:
7.0.6→7.1.0cross-spawn: Command injection on Windows when spawning batch files
CVE-2026-137199 / GHSA-ghv9-86vm-4v8m
More information
Details
Impact
On Windows,
cross-spawnruns commands that aren't executables (.exeor.com), such as batch files (.bator.cmd), throughcmd.exe, and escapes the command and its arguments for it.A batch file that forwards its arguments, e.g. with
%*, makescmd.exeparse them a second time.cross-spawnonly accounted for that second parse when the batch file was an npm cmd-shim located innode_modules/.bin. For any other batch file, such asnpm.cmd, globally installed package shims or user batch files, a crafted argument could break out of its quotes and run arbitrary commands:The following were also affected:
tool.bat), which Windows strips, similar to Node.js' CVE-2024-36138.%VAR%in an argument was expanded if an environment variable namedVAR^existed.!VAR!in an argument was expanded if delayed expansion was enabled in the registry.Applications are affected if they pass untrusted input as arguments to a command that runs through
cmd.exeon Windows. Other platforms aren't affected, and neither isoptions.shell, which doesn't escape the command or its arguments by design.Patches
This is fixed in
7.1.0and6.0.7. Batch file arguments are now escaped with double quotes, like Rust does since the BatBadBut vulnerability (CVE-2024-24576),%is neutralized,cmd.exeruns with/e:on /v:off, batch files are detected after stripping trailing dots and spaces, and line breaks, whichcmd.execan't escape, are rejected with aTypeError.Some limitations can't be fixed by any escaping, such as batch files that use
%~1unquoted. Please see the "Windows argument escaping" section of the README.Workarounds
Validate untrusted input so that only a safe subset is allowed, and call executables directly rather than through batch files.
Credits
Thanks to Duong Bui Thai (LinkedIn) for privately reporting the quote breakout through batch files outside
node_modules/.binand the!VAR!expansion under delayed expansion, and to @mohd-akram for publicly reporting the batch file injection in #171.Severity
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
moxystudio/node-cross-spawn (cross-spawn)
v7.1.0Compare Source
Bug Fixes
7.0.6 (2024-11-18)
Bug Fixes
7.0.5 (2024-11-07)
Bug Fixes
7.0.4 (2024-11-07)
Bug Fixes
7.0.3 (2020-05-25)
Bug Fixes
7.0.2 (2020-04-04)
Bug Fixes
7.0.1 (2019-10-07)
Bug Fixes
Configuration
📅 Schedule: (in timezone America/Los_Angeles)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.