Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-137199: critical-severity vulnerability (CVSS 9.2) in moxystudio node-cross-spawn.
What happened
Original description from the source: cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Why it matters
Critical severity, CVSS 9.2.
Affected products and versions
moxystudio node-cross-spawn < 6.0.7; moxystudio node-cross-spawn >= 7.0.0, < 7.1.0
| Product | Versions | Fixed in |
|---|---|---|
| moxystudio node-cross-spawn | < 6.0.7 | — |
| moxystudio node-cross-spawn | >= 7.0.0, < 7.1.0 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m — CVE Program
- https://github.com/moxystudio/node-cross-spawn/issues/171 — CVE Program
- https://github.com/moxystudio/node-cross-spawn/pull/191 — CVE Program
- https://github.com/moxystudio/node-cross-spawn/pull/192 — CVE Program
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a — CVE Program
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b — CVE Program
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7 — CVE Program
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0 — CVE Program
Weaknesses (CWE): CWE-78
Relevant change history
Published
Preliminary advisory published.