High
cross-spawn argument escaping flaw allows command execution on Windows
On Windows, cross-spawn before 6.0.8 or 7.1.1 escapes arguments wrongly when a command sent through cmd.exe is not a plain program name or path, so command metacharacters in an argument get interpreted by cmd.exe. An attacker who controls the arguments gets arbitrary command execution.
6.0.87.1.1Am I affected?
You are affected if the installed version is older than the fixed version of its release line: 6.0.8, 7.1.1. Check the version you have and update to the fixed version of your line or later. The fixed versions are verified against a vendor or advisory source.
Affected software and versions
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
node-cross-spawn | other | <6.0.8 | 6.0.8 |
node-cross-spawn | other | >=7.0.0, <7.1.1 | 7.1.1 |
A fixed version is shown only when it is verified against a vendor or advisory source.
Who should check
Any Node.js project using cross-spawn below 6.0.8 or between 7.0.0 and 7.1.1 on macOS, Windows or Linux; the dangerous behavior applies on Windows.
Expected outcome after remediation
Report which cross-spawn versions are installed, whether any are below 6.0.8 or in the 7.0.0 to 7.1.1 range, and confirm the project now uses 6.0.8 or 7.1.1.
Get the fix
FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5331 and your operating system.