CVE-2026-137199: cross-spawn · Command injection on Windows when spawning batch files
Affects cross-spawnSource GCVE Database
Not known to be exploited · CVSS 9.2 Critical : upgrade to 7.1.0 as a priority.
Data as of 1 Dec 2026, 04:14 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 9.2 |
|---|
- Patch
- Available – fixed in 7.1.0, 6.0.7
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.
What to do
Upgrade cross-spawn to 7.1.0; cross-spawn to 6.0.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmcross-spawn | Affected
| Fixed in
|
| npmcross-spawn | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in cross-spawn versions 7.1.0 and 6.0.7. Users should upgrade to these versions or later. Additionally, untrusted input should be validated to allow only safe subsets, and executables should be called directly rather than through batch files to avoid this issue. The vendor's fix includes improved argument escaping, neutralization of environment variable expansions, and rejection of unsafe characters. Some edge cases remain unfixable by escaping alone, so input validation is important.
Description
The cross-spawn package on Windows platforms has a command injection vulnerability when spawning batch files. This occurs because cross-spawn escapes commands and arguments for cmd.exe but does not properly handle batch files outside npm cmd-shims, allowing crafted arguments to break out of quotes and execute arbitrary commands. The issue also involves bypasses in batch file detection and environment variable expansions. This vulnerability affects applications passing untrusted input to commands run through cmd.exe on Windows. It is fixed in versions 7.1.0 and 6.0.7.
References
- github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-137199 (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/issues/171 (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/pull/191 (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/pull/192 (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b (opens in a new tab)
- github.com/moxystudio/node-cross-spawn (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7 (opens in a new tab)
- github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0 (opens in a new tab)