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

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-78
- **Published:** 2026-11-30T20:33:32.360Z
- **Modified:** 2026-11-30T21:17:25.223Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker who controls arguments passed to cross-spawn on Windows can inject cmd.exe metacharacters and run arbitrary commands when the command is written in certain forms.

## Who should check

- Anyone running moxystudio node-cross-spawn \< 6.0.8; \>= 7.0.0, \< 7.1.1

## 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.

## Affected and fixed versions

- moxystudio node-cross-spawn: \< 6.0.8; \>= 7.0.0, \< 7.1.1 (cvelist)

## Technologies

Node.js (AI-matched), npm packages (AI-matched)

## Mitigation

- Upgrade node-cross-spawn to 7.1.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-137197. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-137197.md
Affected: moxystudio node-cross-spawn < 6.0.8; >= 7.0.0, < 7.1.1
Fixed in: moxystudio node-cross-spawn 6.0.8, moxystudio node-cross-spawn 7.1.1

Steps:
1. Search this machine and project for moxystudio node-cross-spawn: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-137197 being exploited?

There is no confirmed exploitation: CVE-2026-137197 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-137197?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-137197?

moxystudio node-cross-spawn \< 6.0.8; \>= 7.0.0, \< 7.1.1.

### Is there a fix for CVE-2026-137197?

Yes. Fixed in moxystudio node-cross-spawn 6.0.8, moxystudio node-cross-spawn 7.1.1. Upgrade node-cross-spawn to 7.1.1 or later.

### How do I check if I'm affected by CVE-2026-137197?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f>
- patch: <https://github.com/moxystudio/node-cross-spawn/pull/196>
- patch: <https://github.com/moxystudio/node-cross-spawn/pull/197>
- patch: <https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16>
- patch: <https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9>
- other: <https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8>
- other: <https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-137197>

HTML: <https://flawdb.com/CVE-2026-137197> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-137197>
