International
The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 65 · Tier A

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

GitHub Advisory Database ·

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

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…

Timeline

  1. Advisory published in GitHub Advisory Database

  2. GitHub Advisory Database

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

How do you feel about this?

0 Comments