cross-spawn: Command injection on Windows when spawning batch files
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| npm:cross-spawn | >= 7.0.0, < 7.1.0 | 7.1.0 |
| npm:cross-spawn | < 6.0.7 | 6.0.7 |
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 parse them a second time. cross-spawn only accounted for that second parse when the batch file was an npm cmd-shim located in node_modules/.bin. For any other batch file, such as npm.cmd, globally installed package shims or user batch files, a craft…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/12/01 11:58,GitHub Advisory Database 发布了“cross-spawn: Command injection on Windows when spawning batch files”(类型:漏洞公告)。严重程度为“严重”(critical)。相关技术:JavaScript / Node.js、Windows。CVE:CVE-2026-137199。