Home › Vulnerabilities › moxystudio
cross-spawn Windows command-injection flaws: three CVEs, one critical, fixed in 6.0.7/7.1.0 and 6.0.8/7.1.1
NVD published three vulnerabilities in the moxystudio node-cross-spawn package on 2026-11-30, all concerning untrusted arguments passed to commands routed through cmd.exe on Windows. The most severe, CVE-2026-137199, is rated CRITICAL (CVSS 9.2) and can allow arbitrary command execution according to the record.
What to look into
- 3 vulnerabilities in moxystudio node-cross-spawn: 1 critical, 2 high (CVSS up to 9.2).
- None of them is known to be exploited yet.
- Start with CVE-2026-137199 (9.2 critical): cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulner… An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- 3 of 3 can be attacked over the network without logging in, 3 of them without anyone clicking anything.
- Kinds of flaws: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (×2); Improper Neutralization of Argument Delimiters in a Command ('Argument Injection').
Key points
- Three CVEs in moxystudio node-cross-spawn, all affecting Windows commands routed through cmd.exe.
- CVE-2026-137199 is CRITICAL (CVSS 9.2) and is described as allowing arbitrary command execution.
- CVE-2026-137198 (HIGH, CVSS 8.3) can alter arguments passed to a target program but does not by itself run a second command.
- CVE-2026-137197 (HIGH, CVSS 8.1) involves batch files that were escaped as regular programs.
- Fixed versions are 6.0.7/7.1.0 and 6.0.8/7.1.1; the records do not provide workarounds.
What the batch covers
The three records describe related problems in cross-spawn, a cross-platform solution for Node.js spawn and spawnSync. Each concerns Windows systems where an application passes untrusted arguments to a command that is run through cmd.exe. The flaws come from incomplete escaping, so the arguments cmd.exe receives are not what the application intended.
Most severe: CVE-2026-137199
CVE-2026-137199 is rated CRITICAL (CVSS 9.2). According to the record, cross-spawn did not account for the second parse cmd.exe performs when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and run arbitrary commands through npm.cmd, globally installed package shims, or user batch files. The record also describes bypasses: trailing dots or spaces could evade batch-file detection, and percent-delimited or exclamation-delimited variables could be expanded under specific conditions. Other platforms and the intentionally unescaped options.shell mode are stated to be unaffected.
Argument-splitting flaw: CVE-2026-137198
CVE-2026-137198 is rated HIGH (CVSS 8.3). It stems from runs of backslashes not being correctly doubled before a double quote or at the end of an argument. This could let attacker-controlled text become extra arguments or consume following ones. The record says the injection may go undetected when the target accepts the arguments and exits successfully. It also states that this does not by itself execute a second command.
Unescaped batch-style commands: CVE-2026-137197
CVE-2026-137197 is rated HIGH (CVSS 8.1). Here, certain command forms, including those with quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT, caused cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as for a regular program, so metacharacters could be interpreted by cmd.exe. According to the record, exposure requires both one of these command forms and untrusted input passed as arguments.
Who is affected and what to do
The records indicate that exposure is limited to Windows applications that pass untrusted input through cmd.exe. Fixed releases are named for each record: 6.0.7 and 7.1.0 for CVE-2026-137199 and CVE-2026-137198, and 6.0.8 and 7.1.1 for CVE-2026-137197. The sources do not provide detection steps or workarounds beyond these versions.
What to do
- Update cross-spawn to 6.0.7 or 7.1.0 to address CVE-2026-137199 and CVE-2026-137198.
- Update cross-spawn to 6.0.8 or 7.1.1 to address CVE-2026-137197.
- Review Windows applications that pass untrusted input as arguments to commands run through cmd.exe.
The 3 vulnerabilities
- CVE-2026-137199 9.2 cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account…
- CVE-2026-137198 8.3 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 cr…
- CVE-2026-137197 8.1 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 pla…
Frequently asked questions
How many moxystudio node-cross-spawn vulnerabilities were published on November 30, 2026?
3 vulnerabilities: 1 critical, 2 high, with CVSS scores up to 9.2.
Are any of them being exploited?
None of them is in CISA's Known Exploited Vulnerabilities catalog yet.
Which one should be fixed first?
CVE-2026-137199 (CVSS 9.2): cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulner…