cross-spawn: Command injection on Windows when the command is not a plain program name or path
CVE-2026-137197Published 30 Nov 2026, 20:33 UTC
Real-world risk
3.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.1
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| node-cross-spawnNiche | < 6.0.8; >= 7.0.0, < 7.1.1 | 6.0.8, 7.1.1 |
What to do
Update to a fixed version: 6.0.8, 7.1.1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.8% chance of exploitation in 30 days (percentile 59), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.45 × threat 0.853.825
- Rounded to one decimal between 0.1 and 103.8
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 3.8 (cvss fallback)
Weakness
CWE-78
References
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8fvendor-advisory
- https://github.com/moxystudio/node-cross-spawn/pull/196misc
- https://github.com/moxystudio/node-cross-spawn/pull/197misc
- https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16misc
- https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9misc
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8misc
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1misc
- CVE-2026-137197 on CVE.org