CVE-2026-137197
8.1HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User action
- None
- Impact
- Full C/I/A compromise
- Weakness
- CWE-78
What an attacker gets
Remote 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.
Root cause
The library fails to correctly escape arguments when cmd.exe resolves a batch file, allowing command metacharacter injection.
Affected versions
cross-spawn versions prior to 6.0.8 and 7.1.1 on Windows
CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade cross-spawn to version 6.0.8 or 7.1.1. Ensure all untrusted input passed to spawn or spawnSync is strictly validated or sanitized before execution.
$ 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. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
References
- https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16
- https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9
- https://github.com/moxystudio/node-cross-spawn/pull/196
- https://github.com/moxystudio/node-cross-spawn/pull/197
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1371988.3HighAttackers 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.
- 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.