CVE-2026-137199

9.2Critical

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

9.2CVSS

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.

remediation — bash
$ npm install cross-spawn@latest

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-137199

More fully triaged vulnerabilities you may want to check next.