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.