Cross-spawn 是 Node.js 中 spawn 和 spawnSync 的跨平台解决方案。在 6.0.8 和 7.1.1 之前的版本中,运行在 Windows 上、通过参数传递不可信输入的应用,可能在通过 cmd.exe 发送的命令不是写成纯程序名或路径时受影响。包含引号、命令名分隔符、尾随空格或针对子进程的 PATHEXT 的命令,可能导致 cross-spawn 遗漏 cmd.exe 会解析的批处理文件;随后参数会被当作普通程序进行转义,使 cmd.exe 能将参数中的命令元字符解释为并执行任意命令
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| moxystudio | node-cross-spawn | < 6.0.8 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| CVE-2026-137199 | 9.2 CRITICAL | cross-spawn: Command injection on Windows when spawning batch files |
| CVE-2026-137198 | 8.3 HIGH | cross-spawn: Argument injection on Windows via backslashes before a double quote |