Argument injection in cross-spawn on Windows via backslashes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- None · High · Low
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-88.
Summary
cross-spawn from 6.0.6 before 6.0.7 and from 7.0.4 before 7.1.0 is affected on Windows. It does not double backslashes before a double quote or at the end of an argument (CWE-88). When a Windows application passes untrusted arguments to commands routed through cmd.exe, attacker-controlled text can become extra arguments or consume following arguments, changing the target program's operation. The flaw does not by itself run a second command and does not affect other platforms.
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. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.
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 | 6.0.6 to before 6.0.7; 7.0.4 to before 7.1.0 | 6.0.7, 7.1.0 | Patch available | CNA |
- node-cross-spawn Vendormoxystudio Affected 6.0.6 to before 6.0.7; 7.0.4 to before 7.1.0 Fixed in 6.0.7, 7.1.0 Patch available CNA
Remediation
Upgrade cross-spawn to version 6.0.7 on the 6.x line and to version 7.1.0 on the 7.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA node-cross-spawn (moxystudio) Fixed in 6.0.7, 7.1.0
Timeline
- 2026-11-30 Threatist record created from CVE-2026-137198
References
Other 7
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh
- https://github.com/moxystudio/node-cross-spawn/pull/191
- https://github.com/moxystudio/node-cross-spawn/pull/192
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
More moxystudio vulnerabilities
- TI-2026-101184 Command injection in cross-spawn on Windows when spawning batch files CVSS 4.0CRITICAL 9.2
- TI-2026-101182 Command injection in cross-spawn on Windows via cmd.exe CVSS 3.1HIGH 8.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences