Skip to main content
VulnerabilityPublished

CVE-2026-137199: cross-spawn · Command injection on Windows when spawning batch files

Affects cross-spawnSource GCVE Database

0
Compare
Authoritative record:CVE-2026-137199· Critical 9.2

Not known to be exploited · CVSS 9.2 Critical : upgrade to 7.1.0 as a priority.

Data as of 1 Dec 2026, 04:14 UTC

CVSS 4.0 base score
9.2Critical
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.09.2
Patch
Available – fixed in 7.1.0, 6.0.7
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade cross-spawn to 7.1.0; cross-spawn to 6.0.7.

Affected software

ProductAffectedFixed in
npmcross-spawnAffected
  • >=7.0.0 <7.1.0
Fixed in
  • 7.1.0
npmcross-spawnAffected
  • <6.0.7
Fixed in
  • 6.0.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in cross-spawn versions 7.1.0 and 6.0.7. Users should upgrade to these versions or later. Additionally, untrusted input should be validated to allow only safe subsets, and executables should be called directly rather than through batch files to avoid this issue. The vendor's fix includes improved argument escaping, neutralization of environment variable expansions, and rejection of unsafe characters. Some edge cases remain unfixable by escaping alone, so input validation is important.

Description

The cross-spawn package on Windows platforms has a command injection vulnerability when spawning batch files. This occurs because cross-spawn escapes commands and arguments for cmd.exe but does not properly handle batch files outside npm cmd-shims, allowing crafted arguments to break out of quotes and execute arbitrary commands. The issue also involves bypasses in batch file detection and environment variable expansions. This vulnerability affects applications passing untrusted input to commands run through cmd.exe on Windows. It is fixed in versions 7.1.0 and 6.0.7.

References

Community reviews

Loading reviews…