CVE-2026-137197
cross-spawn: Command injection on Windows when the command is not a plain program name or path
AI summary AI generated
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.
Mitigation
- Upgrade node-cross-spawn to 7.1.1 or later.
Who should check
- Anyone running moxystudio node-cross-spawn < 6.0.8; >= 7.0.0, < 7.1.1
Vulnerability facts
- 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
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- CWE
- CWE-78
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| moxystudio node-cross-spawn | < 6.0.8; >= 7.0.0, < 7.1.1 | — | cvelist |
Versions mentioned in the description AI generated
Extracted by AI; each line quotes the description word for word. Source data above takes precedence.
- Affected: node-cross-spawn 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.
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.
- Fixed: node-cross-spawn 6.0.8
This issue is fixed in versions 6.0.8 and 7.1.1.
- Fixed: node-cross-spawn 7.1.1
This issue is fixed in versions 6.0.8 and 7.1.1.
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
Vendor advisories
Patches
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.
More moxystudio vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| CRITICAL 9.2 | CVE-2026-137199 cross-spawn: Command injection on Windows when spawning batch files | Node.js+2 | ||
| HIGH 8.3 | CVE-2026-137198 cross-spawn: Argument injection on Windows via backslashes before a double quote | Node.js+1 |