cross-spawn: Argument injection on Windows via backslashes before a double quote
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:cross-spawn | >= 7.0.4, < 7.1.0 | 7.1.0 |
| npm:cross-spawn | = 6.0.6 | 6.0.7 |
On Windows, when cross-spawn runs a command through cmd.exe, it quotes each argument and doubles the backslashes that precede a double quote or the end of the argument, so that they aren't taken as escaping the quote. Since 7.0.4, 7.0.5 and 6.0.6, which changed the regular expressions to fix a ReDoS vulnerability (GHSA-3xgq-45jj-v275), backslash runs weren't doubled correctly: 7.0.4 didn't double them at all, and 7.0.5, 7.0.6 and 6.0.6 added only one backslash to each run. An argument with two…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/04 09:14、GitHub Advisory Databaseが「cross-spawn: Argument injection on Windows via backslashes before a double quote」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「重要」(high) です。関連する技術: JavaScript / Node.js、Windows。CVE: CVE-2026-137198。