Skip to content

chore(deps): bump cross-spawn to 7.1.2 - #838

Merged
JoshMock merged 1 commit into
elastic:mainfrom
akira28:chore/bump-cross-spawn
Dec 1, 2026
Merged

JoshMock merged 1 commit into
elastic:mainfrom
akira28:chore/bump-cross-spawn

Conversation

@akira28

@akira28 akira28 commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

MegaLinter's trivy scan fails on main's lockfile since a new advisory for cross-spawn 7.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.6 becomes ^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.txt is regenerated, with only the version line changed.
  • cross-spawn is used in src/extension/installer.ts. 7.x is semver-compatible and 8.0.0 is a major, so it is out of scope here.

Testing

  • npm test passes: build, unit tests (2488 pass, 0 fail, 2 skipped) and the license check.
  • npm ls cross-spawn shows only 7.1.2.
  • I haven't run trivy locally. CI's MegaLinter is the check that this clears the finding.

🤖 Generated with Claude Code

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>
Copilot AI balanced review requested due to automatic review settings December 1, 2026 11:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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.2 and 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
JoshMock merged commit 6b75264 into elastic:main Dec 1, 2026
38 checks passed
@akira28
akira28 deleted the chore/bump-cross-spawn branch December 1, 2026 19:00
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.

3 participants