Security · High impactFan score 65 · Tier A
cross-spawn: Command injection on Windows when spawning batch files (CVE-2026-137199)
The Brief
- cross-spawn runs non-executable commands such as .bat and .cmd files through cmd.exe on Windows.
- cross-spawn escapes the command and its arguments for cmd.exe, which the advisory says leads to command injection.
- A batch file that forwards its arguments, e.g. with %, can make cmd.exe execute injected commands.
Why it matters
Applications on Windows that spawn batch files through cross-spawn may run attacker-controlled commands if the arguments carry untrusted input.
Who’s affected
- Windows users of cross-spawn
- CVE-2026-137199
- #security
- #cross-spawn
- #windows
- #command-injection
- #cve
Affects cross-spawn. Impact On Windows, cross-spawn runs commands that aren't executables (.exe or .com), such as batch files (.bat or .cmd), through cmd.exe, and escapes the command and its arguments for it. A batch file that forwards its arguments, e.g. with %, makes cmd.exe…