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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-ghv9-86vm-4v8m cross-spawn: Command injection on Windows when spawning batch files
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 03 Dec 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Moxystudio
Moxystudio node-cross-spawn
Vendors & Products Moxystudio
Moxystudio node-cross-spawn

Wed, 02 Dec 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Wed, 02 Dec 2026 10:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 30 Nov 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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.
Title cross-spawn: Command injection on Windows when spawning batch files
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-01T19:15:07.695Z

Reserved: 2026-11-25T21:33:08.027Z

Link: CVE-2026-137199

cve-icon Vulnrichment

Updated: 2026-12-01T19:15:00.669Z

cve-icon NVD

Status : Received

Published: 2026-11-30T21:17:25.533

Modified: 2026-12-01T20:18:49.763

Link: CVE-2026-137199

cve-icon Redhat

Severity : Important

Publid Date: 2026-11-30T20:39:53Z

Links: CVE-2026-137199 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-12-03T20:25:34Z

Weaknesses