CVE-2026-137197
published high CVSS 3.1 · 8.1cross-spawn: Command injection on Windows when the command is not a plain program name or path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| moxystudio | — | node-cross-spawn< 6.0.8 · >= 7.0.0, < 7.1.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| moxystudio | node-cross-spawn | < 6.0.8 (affected)>= 7.0.0, < 7.1.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-78 CWE-78: Improper Neutralization of Special Elements used in an OS Command
References
7- 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
Provider assertions
2GitHub_M · cna
cross-spawn: Command injection on Windows when the command is not a plain program name or path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1220663ed1dcf2df5d775c22167b20560fdaf5c10e062bc976ad9b0a5e97b918
- Ingested
- 01 Dec 2026, 14:00:33 UTC
- Source record
- Official CVE record