Home › CVE › JavaScript
CVE-2026-137198 — 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. 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.
Severity breakdown
High · 8.3
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 integrity, low on availability, none on confidentiality
- Impact on other systems
- none
Weakness
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| moxystudio node-cross-spawn | >= 6.0.6, < 6.0.7, >= 7.0.4, < 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
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-137198?
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. Weakness type: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88).
How severe is CVE-2026-137198?
CVE-2026-137198 has a CVSS 4.0 base score of 8.3 (high), 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-137198 being exploited?
Not as far as is known: CVE-2026-137198 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-137198?
moxystudio node-cross-spawn >= 6.0.6, < 6.0.7, >= 7.0.4, < 7.1.0.
How do I fix CVE-2026-137198?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.