CVE-2026-137199
9.2CriticalPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
Critical
0CVSS v4.010
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-78
What an attacker gets
Attackers can execute arbitrary commands on Windows hosts by passing crafted arguments to Node.js applications using cross-spawn. This requires the application to process untrusted input that is subsequently routed through cmd.exe.
Root cause
The library fails to properly escape arguments when spawning batch files on Windows, allowing command injection via cmd.exe parsing.
Affected versions
cross-spawn versions prior to 6.0.7 and 7.1.0
CVSS v4.0 · 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade cross-spawn to 6.0.7 or 7.1.0. If you cannot update immediately, ensure applications do not pass untrusted user input to spawn or spawnSync when targeting batch files on Windows.
$ npm install cross-spawn@latestAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- https://github.com/moxystudio/node-cross-spawn/issues/171
- https://github.com/moxystudio/node-cross-spawn/pull/191
- https://github.com/moxystudio/node-cross-spawn/pull/192
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m
Related Critical CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1371978.1HighRemote attackers can execute arbitrary commands on Windows hosts by passing malicious arguments to spawn functions. This requires the application to process untrusted input as arguments to commands executed via cmd.exe.
- CVE-2026-1371988.3HighAttackers can perform argument injection on Windows systems by passing malicious input to commands routed through cmd.exe. This requires the application to process untrusted arguments via cross-spawn.
- CVE-2026-1167709.0CriticalAn attacker in a privileged network position can disclose protected information from the Host Group Updater. This allows them to compromise the integrity of the Secure Access system.
- CVE-2026-1371899.3CriticalUnauthenticated remote attackers can bypass access controls to modify Jupyter backend configurations or access health endpoints. This is possible because the server trusts the client-supplied Host header to verify request origin.
- CVE-2023-544259.8CriticalUnauthenticated attackers can achieve remote code execution by uploading a web shell to the server. This is possible via path traversal in the /pmc-bin/upload_fcgi endpoint.
- CVE-2026-1386709.8CriticalRemote unauthenticated attackers can bypass authentication and gain full control of the device. This requires no user interaction and can be triggered by sending a crafted request to the web interface.