CVE-2026-137198

8.3High

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

8.3CVSS

High

0CVSS v4.010

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
High impact on integrity
Weakness
CWE-88

What an attacker gets

Attackers can perform argument injection on Windows systems by passing malicious input to commands routed through cmd.exe. This requires the application to process untrusted arguments via cross-spawn.

Root cause

The library fails to correctly escape backslashes before double quotes when spawning processes on Windows, allowing attackers to break out of argument boundaries.

Affected versions

cross-spawn 6.0.6 through 6.0.7 and 7.0.4 through 7.1.0

CVSS v4.0 · CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/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 to cross-spawn 6.0.7 or 7.1.0. If you cannot update, sanitize all untrusted input passed to spawn or spawnSync to ensure it does not contain backslashes followed by double quotes.

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. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.

References

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

More fully triaged vulnerabilities you may want to check next.