cross-spawn: Command injection on Windows when the command is not a plain program name or path
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| 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…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/05 04:52、GitHub Advisory Databaseが「cross-spawn: Command injection on Windows when the command is not a plain program name or path」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「重要」(high) です。関連する技術: JavaScript / Node.js。CVE: CVE-2026-137197。