← 漏洞与更新

高危漏洞公告JavaScript / Node.jsGitHubWindows

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.17.1.1
npm:cross-spawn< 6.0.86.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…

在 GitHub Advisory Database 阅读

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、GitHub、Windows。CVE:CVE-2026-137197。