# CVE-2026-137197: cross-spawn: Command injection on Windows when the command is not a plain program name or path

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 6.0.8, 7.1.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-01
- Record: https://cvemate.com/vulnerability/CVE-2026-137197 · JSON: https://cvemate.com/vulnerability/CVE-2026-137197/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.824%, percentile 58.661%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- moxystudio node-cross-spawn: \< 6.0.8 \| ≥ 7.0.0, \< 7.1.1

## References

- <https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f>
- <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/commit/4a15965b05415e9f817315206771b25558804b16>
- <https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9>
- <https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8>
- <https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1>

---

Data as of 2026-12-05T07:29:40.974Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
