Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-137199— cross-spawn: Command injection on Windows when spawning batch files

Quick assessment

Affected
moxystudio node-cross-spawn
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

翻译: cross-spawn 是 Node.js 的 spawn 和 spawnSync 的跨平台解决方案。在 6.0.7 和 7.1.0 之前,在 Windows 上,如果应用程序将不可信参数传递给经过 cmd.exe 路由的命令,则可能存在漏洞:因为 cross-spawn 没有考虑到当一个位于 node_modules/.bin 之外的批处理文件转发其参数时,cmd.exe 可能进行第二次解析。精心构造的参数可能会逃出引号,并通过 npm.cmd、全局安装的包 shim 或用户批处理文件执行任意命令。尾部的

CVSS 9.2 · Critical
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-137199

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

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.

Vulnerability Title
cross-spawn: Command injection on Windows when spawning batch files
Source: CVE Program / CVE List V5
Vulnerability Description
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
moxystudio node-cross-spawn < 6.0.7 -

II. Public POCs for CVE-2026-137199

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-137199

请登录查看更多情报信息。

Other References for CVE-2026-137199 (8)

Same Patch Batch · moxystudio · 2026-11-30 · 3 CVEs total

CVE-2026-137198 8.3 HIGH cross-spawn: Argument injection on Windows via backslashes before a double quote
CVE-2026-137197 8.1 HIGH cross-spawn: Command injection on Windows when the command is not a plain program name or

IV. Related Vulnerabilities