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

Source: [GitHub Advisory Database](https://github.com/advisories/GHSA-ghv9-86vm-4v8m) · 2026-12-01 · Security
Page: https://themorning.dev/story/cross-spawn-command-injection-on-windows-when-spawning-batch-files-cve-2026-1371-baef172ae5d0439c
Kind: security · Impact: high

## In 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.

## CVEs

- CVE-2026-137199

## Timeline

- 2026-12-01: Advisory published in GitHub Advisory Database

## Coverage

- [cross-spawn: Command injection on Windows when spawning batch files (CVE-2026-137199)](https://github.com/advisories/GHSA-ghv9-86vm-4v8m) — GitHub Advisory Database, 2026-12-01

Tags: security, cross-spawn, windows, command-injection, cve

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
