node-cross-spawn command injection through Windows batch files
CVE-2026-137199
Windows programs using this library can be made to run hidden commands!
- CVE
- CVE-2026-137199 (opens in a new tab)
- Score
- CVSS 9.2
- First seen
Mitigation
Update to 6.0.7 for the 6.x line or 7.1.0 for the 7.x line. Versions before 6.0.0 have no confirmed fixed version, so move to 6.0.7 or 7.1.0. Until then, validate untrusted input against a safe subset and call executables directly rather than through batch files.
Update to at least the version for your product:
- node-cross-spawn 7.x 7.1.0 or later
- node-cross-spawn 6.x 6.0.7 or later
Summary
Batch files run on Windows through cross-spawn can let crafted arguments run arbitrary commands. Programs that pass untrusted input as arguments to such commands are affected.
Affected when
- Windows
- Untrusted input passed as arguments to commands run through cmd.exe
- Batch files outside node_modules/.bin, such as npm.cmd or global package shims
2 other Incidents of this product in the last 30 days
Incidents by product: node-cross-spawn
Other recent Incidents of node-cross-spawn
Read the advisory · github.com (opens in a new tab)
- Advisory: github.com (opens in a new tab)
- CVE record: cve.org (opens in a new tab)
- Repository: googlesky/CVE-2026-137199 (opens in a new tab)