Home › CVE › JavaScript
CVE-2026-137199 — moxystudio node-cross-spawn
One of 3 moxystudio node-cross-spawn vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWindowsWebOperating systemsVulnerabilitiesSummary
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 for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Severity breakdown
Critical · 9.2
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| moxystudio node-cross-spawn | < 6.0.7, >= 7.0.0, < 7.1.0 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f…
- github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf…
- github.com/moxystudio/node-cross-spawn/pull/191
- github.com/moxystudio/node-cross-spawn/pull/192
- github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
Other references
Affected
- moxystudio node-cross-spawn
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-137199?
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 for the second cmd.exe parse performed when a batch file outside nodemodules/.bin forwards its arguments. Weakness type: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78).
How severe is CVE-2026-137199?
CVE-2026-137199 has a CVSS 4.0 base score of 9.2 (critical), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-137199 being exploited?
Not as far as is known: CVE-2026-137199 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.
Which versions are affected by CVE-2026-137199?
moxystudio node-cross-spawn < 6.0.7, >= 7.0.0, < 7.1.0.
How do I fix CVE-2026-137199?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.