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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-137197— cross-spawn: Command injection on Windows when the command is not a plain program name or path

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.8 和 7.1.1 之前的版本中,运行在 Windows 上、通过参数传递不可信输入的应用,可能在通过 cmd.exe 发送的命令不是写成纯程序名或路径时受影响。包含引号、命令名分隔符、尾随空格或针对子进程的 PATHEXT 的命令,可能导致 cross-spawn 遗漏 cmd.exe 会解析的批处理文件;随后参数会被当作普通程序进行转义,使 cmd.exe 能将参数中的命令元字符解释为并执行任意命令

CVSS 8.1 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-137197

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 the command is not a plain program name or path
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.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
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.8 -

II. Public POCs for CVE-2026-137197

# 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-137197

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

Other References for CVE-2026-137197 (7)

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

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

IV. Related Vulnerabilities