Repository navigation
chore(deps): bump cross-spawn to 7.1.2 - #838
Merged
Merged
Conversation
7.0.6 is flagged by trivy as CVE-2026-137199 (critical, command injection on Windows when spawning batch files), fixed in 7.1.0. That fails MegaLinter on every PR. The direct dependency range is raised to ^7.1.2, and eslint and execa's copies dedupe to it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the cross-spawn dependency update.
No open issues 🎉
What changed in this PR
Updates Elastic CLI’s cross-spawn dependency to 7.1.2 to address the reported Windows command-injection advisory affecting subprocess execution in extension installation and upgrades.
Changes:
- Raises the dependency range to
^7.1.2and locks the shared installation to 7.1.2. - Updates the third-party notice to reflect the new version.
| File | Description |
|---|---|
package.json |
Raises the cross-spawn dependency range to ^7.1.2. |
package-lock.json |
Locks version 7.1.2 with its updated URL and integrity hash. |
NOTICE.txt |
Updates the cross-spawn version attribution to 7.1.2. |
Review effort: Balanced
JoshMock
approved these changes
Dec 1, 2026
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.
MegaLinter's trivy scan fails on
main's lockfile since a new advisory forcross-spawn7.0.6 landed: CVE-2026-137199 (critical), a command injection on Windows when spawning batch files, fixed in 7.1.0 and 6.0.7.main's own CI passed at 8829d4c a few hours earlier, so every PR hits it now, such as #825.What changes
cross-spawn^7.0.6becomes^7.1.2, and the lockfile resolves to 7.1.2, the latest 7.x. eslint's and execa's copies dedupe to it, so only one version is installed.NOTICE.txtis regenerated, with only the version line changed.cross-spawnis used insrc/extension/installer.ts. 7.x is semver-compatible and 8.0.0 is a major, so it is out of scope here.Testing
npm testpasses: build, unit tests (2488 pass, 0 fail, 2 skipped) and the license check.npm ls cross-spawnshows only 7.1.2.🤖 Generated with Claude Code