Home › CVE › JavaScript
CVE-2026-137197 — moxystudio node-cross-spawn
One of 3 moxystudio node-cross-spawn vulnerabilities published together by NVD: our article covers all of them.
JavaScriptWindowsWebOperating systemsVulnerabilitiesSummary
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.
Severity breakdown
High · 8.1
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| moxystudio node-cross-spawn | < 6.0.8, >= 7.0.0, < 7.1.1 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206…
- github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548…
- github.com/moxystudio/node-cross-spawn/pull/196
- github.com/moxystudio/node-cross-spawn/pull/197
- github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8
- github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1
Affected
- moxystudio node-cross-spawn
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-137197?
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. Weakness type: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78).
How severe is CVE-2026-137197?
CVE-2026-137197 has a CVSS 3.1 base score of 8.1 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-137197 being exploited?
Not as far as is known: CVE-2026-137197 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026.
Which versions are affected by CVE-2026-137197?
moxystudio node-cross-spawn < 6.0.8, >= 7.0.0, < 7.1.1.
How do I fix CVE-2026-137197?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.