CVE-2026-137198
published high CVSS 4.0 · 8.3cross-spawn: Argument injection on Windows via backslashes before a double quote
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| moxystudio | — | node-cross-spawn>= 6.0.6, < 6.0.7 · >= 7.0.4, < 7.1.0 | Affected | Not stated | GitHub_M |
Description
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. From 6.0.6 until 6.0.7 and from 7.0.4 until 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not correctly double runs of backslashes before a double quote or at the end of an argument. Two or more backslashes could escape the argument's closing quote, allowing attacker-controlled text to become extra arguments or consume following arguments. The caller may not detect the injection when the target accepts the resulting arguments and exits successfully, while a target that rejects an unexpected argument can fail instead. The affected command class includes npm cmd-shims in node_modules/.bin. This can change a target program's operation, although it does not by itself execute a second command and does not affect other platforms. This issue is fixed in versions 6.0.7 and 7.1.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| moxystudio | node-cross-spawn | >= 6.0.6, < 6.0.7 (affected)>= 7.0.4, < 7.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-88 CWE-88: Improper Neutralization of Argument Delimiters in a Command
References
7- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- https://github.com/moxystudio/node-cross-spawn/pull/191
- https://github.com/moxystudio/node-cross-spawn/pull/192
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh
Provider assertions
2GitHub_M · cna
cross-spawn: Argument injection on Windows via backslashes before a double quote
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6fee03af89d9cbacec253c31515b4049e1bf733d1508443bda008d3c0c4e89f4
- Ingested
- 01 Dec 2026, 13:49:32 UTC
- Source record
- Official CVE record