## cross-spawn: Command injection on Windows when the command is not a plain program name or path

- 種別: advisory
- 重大度: high
- 関連技術: nodejs, github, windows
- CVE: CVE-2026-137197
- 公開日時: 2026-12-04T19:52:52.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-w3gc-668g-rf8f)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-w3gc-668g-rf8f

影響: npm:cross-spawn >= 7.0.0, < 7.1.1 → 7.1.1, npm:cross-spawn < 6.0.8 → 6.0.8
On Windows, cross-spawn runs commands that aren't executables, such as batch files (.bat and .cmd), through cmd.exe, and escapes their arguments for it. Batch files need a stricter escaping, because cmd.exe parses their arguments a second time. 7.1.0 and 6.0.7 fixed that escaping ([GHSA-ghv9-86vm-4v8m](https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m)), but it only applies when cross-spawn detects that the command is a batch file. The detection could be byp…