# CVE-2026-137199: cross-spawn: Command injection on Windows when spawning batch files

- Severity: Critical 9.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2026-11-30T20:39:53.636Z
- Modified: 2026-12-01T03:15:04.449Z
- Also known as: GHSA-ghv9-86vm-4v8m
- Weaknesses: CWE-78
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- moxystudio node-cross-spawn: < 6.0.7; >= 7.0.0, < 7.1.0
- cross-spawn (npm): from 7.0.0 before 7.1.0; before 6.0.7

## Every score

- GitHub_M: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m> (web)
- <https://github.com/moxystudio/node-cross-spawn/issues/171> (web)
- <https://github.com/moxystudio/node-cross-spawn/pull/191> (web)
- <https://github.com/moxystudio/node-cross-spawn/pull/192> (web)
- <https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a> (web)
- <https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b> (web)
- <https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7> (web)
- <https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-137199> (advisory)
- <https://github.com/moxystudio/node-cross-spawn> (package)

## Sources

- CVE List: [CVE-2026-137199](https://www.cve.org/CVERecord?id=CVE-2026-137199), CVE Terms of Use, modified 2026-11-30
- GitHub Advisory Database: [GHSA-ghv9-86vm-4v8m](https://github.com/advisories/GHSA-ghv9-86vm-4v8m), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-137199](https://nvd.nist.gov/vuln/detail/CVE-2026-137199), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-137199 · Whole record: https://cve.day/CVE-2026-137199.json · Rebuilt by cve.day 2026-12-01T03:27:24.819Z
