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…
- CVSS
- 8.3High
- Chance of exploitation (EPSS)
- 0.90%
- Published
- Nov 30, 2026
- In the news
- 1 story
What to do
A serious security flaw in Moxystudio Node-cross-spawn that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Moxystudio Node-cross-spawn
- >= 6.0.6, < 6.0.7; >= 7.0.4, < 7.1.0
Description
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.
Affected products
Get alerts for these →Timeline 4
Latest change: cross-spawn: cross-spawn: Argument injection on Windows via backslashes before a double quote (Dec 3, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Dec 4, 2026
- Researchcross-spawn: cross-spawn: Argument injection on Windows via backslashes before a double quoteGitHub Advisories · 00:14 UTC
- DetectionTenable Cloud Security plugin 499162: SCA: security update for cross-spawn (GHSA-m6qr-m48x-3xhh)Tenable
- DetectionTenable Container Security plugin 499162: SCA: security update for cross-spawn (GHSA-m6qr-m48x-3xhh)Tenable
Mon, Nov 30, 2026
- CVECVE-2026-137198 published (CVSS 8.3)CVE Program · 21:17 UTC
References 7
- github.com /moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- github.com /moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- 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
- github.com /moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh