Skip to content

Bump pre-commit to 2.0.0 and cross-spawn to 7.1.2 - #170

Merged
ya-petrov-evgeniy merged 1 commit into
mainfrom
evgenii/fix-cross-spawn-ghsa-ghv9-86vm-4v8m
Dec 2, 2026
Merged

ya-petrov-evgeniy merged 1 commit into
mainfrom
evgenii/fix-cross-spawn-ghsa-ghv9-86vm-4v8m

Conversation

@ya-petrov-evgeniy

Copy link
Copy Markdown
Contributor

Fixes Dependabot alerts #117 and #118 (GHSA-ghv9-86vm-4v8m, critical): cross-spawn command injection on Windows when spawning batch files.

  • cross-spawn 7.0.6 → 7.1.2 (via eslint, nyc and friends; patched in 7.1.0)
  • pre-commit 1.2.2 → 2.0.0: 1.2.2 pinned cross-spawn@^5.0.1, which has no patched 5.x release. 2.0.0 depends on cross-spawn@^7.0.5 and drops spawn-sync, concat-stream, readable-stream and friends. It requires Node >= 16.13, within our >=16 engines range for dev tooling.

Lockfile-only change; package.json already allowed any pre-commit version. All lockfile resolved URLs point at registry.npmjs.org.

npm test (302 passing) and npm run lint are green locally.

🤖 Generated with Claude Code

Fixes GHSA-ghv9-86vm-4v8m (cross-spawn command injection on Windows).
pre-commit 1.2.2 pinned cross-spawn ^5.0.1, which has no patched 5.x
release; pre-commit 2.0.0 depends on cross-spawn ^7.0.5 and drops
spawn-sync and its transitive dependencies.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​pre-commit@​1.2.2 ⏵ 2.0.092 +110010084100

View full report

@ya-petrov-evgeniy
ya-petrov-evgeniy marked this pull request as ready for review December 2, 2026 08:24
@ya-petrov-evgeniy
ya-petrov-evgeniy merged commit 7c9b706 into main Dec 2, 2026
8 checks passed
@ya-petrov-evgeniy
ya-petrov-evgeniy deleted the evgenii/fix-cross-spawn-ghsa-ghv9-86vm-4v8m branch December 2, 2026 08:25
@ya-petrov-evgeniy ya-petrov-evgeniy mentioned this pull request Dec 2, 2026
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.

2 participants