PT-2026-164172
CVE-2026-137199
·
Published
2026-11-30
·
Updated
2026-12-01
Description by
CVSS 4.0
9.2
CriticalMetricsAV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions
cross-spawn versions prior to 6.0.7
cross-spawn versions prior to 7.1.0
Description
Windows applications that pass untrusted arguments to commands routed through
cmd.exe are susceptible to command injection. This occurs because the software fails to account for a second cmd.exe parse that happens when a batch file outside node modules/.bin forwards its arguments. An attacker can use crafted arguments to break out of quotes and execute arbitrary commands via npm.cmd, user batch files, or globally installed package shims. Specifically, trailing dots or spaces can be used to bypass batch-file detection. Additionally, percent-delimited variables in an argument may be expanded if an environment variable of the same name followed by a caret exists, and exclamation-delimited variables may be expanded if delayed expansion is enabled in the registry.Recommendations
Update cross-spawn to version 6.0.7.
Update cross-spawn to version 7.1.0.
Found an issue in the description? Have something to add? Feel free to write us 👾