Critical

cross-spawn argument injection through cmd.exe batch files

On Windows, a crafted argument passed through cross-spawn can break out of its quotes and run arbitrary commands via npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces can bypass batch-file detection, and percent-delimited variables in arguments are mishandled.

Systems
macOSWindowsLinux
Fixed in
6.0.77.1.0
CVSS
9.2
Weakness
CWE-78
Source
Get the fix in Telegram

Am I affected?

You are affected if the installed version is older than the fixed version of its release line: 6.0.7, 7.1.0. 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

PackageEcosystemAffectedFixed in
node-cross-spawnother<6.0.76.0.7
node-cross-spawnother>=7.0.0, <7.1.07.1.0

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Node.js projects that use cross-spawn: versions below 6.0.7 and versions from 7.0.0 up to but not including 7.1.0. The risky path is Windows apps passing untrusted arguments to commands routed through cmd.exe.

Expected outcome after remediation

Report every cross-spawn copy and version found, whether each is below 6.0.7 or between 7.0.0 and 7.1.0, and whether the updated versions 6.0.7 or 7.1.0 are now recorded in the project.

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 5333 and your operating system.

Related node-cross-spawn incidents

All node-cross-spawn incidents