CVE-2026-137198
8.3HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
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.
$ npm install cross-spawn@latestAI-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
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- https://github.com/moxystudio/node-cross-spawn/pull/191
- https://github.com/moxystudio/node-cross-spawn/pull/192
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1371978.1HighRemote attackers can execute arbitrary commands on Windows hosts by passing malicious arguments to spawn functions. This requires the application to process untrusted input as arguments to commands executed via cmd.exe.
- CVE-2026-1371999.2CriticalAttackers can execute arbitrary commands on Windows hosts by passing crafted arguments to Node.js applications using cross-spawn. This requires the application to process untrusted input that is subsequently routed through cmd.exe.
- CVE-2026-933298.7HighUnauthenticated attackers can read private Cloud Storage objects in your project. They only need network access to your deployed Agent Studio App Builder application.
- CVE-2026-924407.0HighAttackers can bypass route-scoped authentication and authorization plugins. This occurs when the gateway incorrectly selects a route, allowing unauthorized access to protected services.
- CVE-2026-1399967.4HighRemote attackers can trigger prototype pollution by sending crafted serialized data to the application. This can lead to unexpected application behavior or compromise of data integrity.
- CVE-2026-1398567.3HighUnauthenticated remote attackers can execute arbitrary SQL commands against the database. This is possible by manipulating the order_field parameter in the listPage function.