Read the docs

Command injection in cross-spawn on Windows via cmd.exe

Priority MEDIUM 50CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.

Summary

cross-spawn, a Node.js spawn and spawnSync library for cross-platform use, is affected before 6.0.8 and from 7.0.0 before 7.1.1. On Windows, applications that pass untrusted arguments can have those arguments interpreted by cmd.exe when the command is not a plain program name or path, because cross-spawn fails to detect that cmd.exe will run a batch file (CWE-78). An attacker who controls an argument can inject command metacharacters and execute arbitrary commands. Only applications that use one of these command forms with untrusted input are affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.

Why it matters now

Fix Fixed node-cross-spawn (moxystudio): 6.0.8, 7.1.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
moxystudionode-cross-spawnbefore 6.0.8; 7.0.0 to before 7.1.16.0.8, 7.1.1Patch availableCNA
  • node-cross-spawn Vendormoxystudio Affected before 6.0.8; 7.0.0 to before 7.1.1 Fixed in 6.0.8, 7.1.1 Patch available CNA

Remediation

Update node-cross-spawn to version 6.0.8 or 7.1.1. Versions 6.0.8 and 7.1.1 are the fixed releases.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA node-cross-spawn (moxystudio) Fixed in 6.0.8, 7.1.1

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-137197

References

  • TI-2026-101184 Command injection in cross-spawn on Windows when spawning batch files CVSS 4.0CRITICAL 9.2
  • TI-2026-101183 Argument injection in cross-spawn on Windows via backslashes CVSS 4.0HIGH 8.3

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences