
Cross-spawn releases patches for critical Windows command injection flaw
The cross-spawn library, a popular Node.js utility for spawning processes, has released versions 6.0.7 and 7.1.0 to address CVE-2026-137199, a critical vulnerability rated 9.2 on the CVSS scale. The flaw affects Windows applications that pass untrusted arguments to commands routed through cmd.exe, specifically when batch files outside the standard node_modules/.bin directory forward arguments. Attackers could exploit this to execute arbitrary commands via crafted inputs that break out of quotes or trigger variable expansion. The fix neutralizes special characters and improves batch file detection, mirroring security measures adopted after the 2024 BatBadBut vulnerability. No other platforms or the intentionally unescaped shell mode are affected.

