Command injection in cross-spawn on Windows via cmd.exe
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
cross-spawn, a Node.js spawn and spawnSync library for cross-platform use, is affected before 6.0.8 and from 7.0.0 before 7.1.1. On Windows, applications that pass untrusted arguments can have those arguments interpreted by cmd.exe when the command is not a plain program name or path, because cross-spawn fails to detect that cmd.exe will run a batch file (CWE-78). An attacker who controls an argument can inject command metacharacters and execute arbitrary commands. Only applications that use one of these command forms with untrusted input are affected.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| moxystudio | node-cross-spawn | before 6.0.8; 7.0.0 to before 7.1.1 | 6.0.8, 7.1.1 | Patch available | CNA |
- node-cross-spawn Vendormoxystudio Affected before 6.0.8; 7.0.0 to before 7.1.1 Fixed in 6.0.8, 7.1.1 Patch available CNA
Remediation
Update node-cross-spawn to version 6.0.8 or 7.1.1. Versions 6.0.8 and 7.1.1 are the fixed releases.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA node-cross-spawn (moxystudio) Fixed in 6.0.8, 7.1.1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-137197
References
Other 7
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f
- https://github.com/moxystudio/node-cross-spawn/pull/196
- https://github.com/moxystudio/node-cross-spawn/pull/197
- https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16
- https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1
More moxystudio vulnerabilities
- TI-2026-101184 Command injection in cross-spawn on Windows when spawning batch files CVSS 4.0CRITICAL 9.2
- TI-2026-101183 Argument injection in cross-spawn on Windows via backslashes CVSS 4.0HIGH 8.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences