node-cross-spawn argument injection in Windows command spawning
Affects node-cross-spawn 6.0.6 to before 6.0.7 and 7.0.4 to before 7.1.0 on Windows when untrusted input is passed as arguments to commands run through cmd.exe. Fixed in 6.0.7 and 7.1.0.
- Exploited
- No known exploitation
- Fix
- Fixed in 6.0.7, 7.1.0
- Who is exposed
- Not reported
Summary
The cross-spawn package (node-cross-spawn) on Windows lets an attacker, remotely and without logging in, add extra arguments to commands run through cmd.exe by using backslashes before a double quote to escape the argument's closing quote. This can change what the target program does, but it does not by itself run a second command.
Written by a model
Original 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.
Who should check
Windows teams passing untrusted input to cross-spawn 6.0.6 (before 6.0.7) or 7.0.4 to before 7.1.0, including anything running npm cmd-shims in node_modules/.bin
“Applications are affected if they pass untrusted input as arguments to a command that runs through cmd.exe on Windows”
What to do
Upgrade to a fixed version: 6.0.7, 7.1.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-137198 (cross-spawn: Argument injection on Windows via backslashes before a double quote), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-137198 (entry last updated 2026-11-30):
Affected:
- moxystudio node-cross-spawn: from 6.0.6, fixed in 6.0.7; from 7.0.4, fixed in 7.1.0
Fixed versions: 6.0.7, 7.1.0.
Conditions (all must be true for the bug to be hit):
- Windows only; the command runs through cmd.exe, such as batch files and npm cmd-shims (source: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh)
- Affected cross-spawn versions: 7.0.4 to before 7.1.0, and 6.0.6 to before 6.0.7 (source: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh)
- Includes npm cmd-shims in node_modules/.bin (source: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-137198 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-137198 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh
- 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/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-137198
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-137198"}.Affected versions
- moxystudio node-cross-spawnFrom 6.0.6 · fixed in 6.0.7; From 7.0.4 · fixed in 7.1.0
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.3/10CVSS 8.3
- No patch0/5No signal
What would change the score
- Would score about 70 if added to CISA KEV
- Would score about 65 if CISA's SSVC rates exploitation active
- Would score about 30 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · moxystudio/node-cross-spawn · Advisory GHSA-m6qr-m48x-3xhh |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-137198 |
| Record | NVD · CVE-2026-137198 |
| Other links 6 | |
| Repository | GitHub · moxystudio/node-cross-spawn · Pull request #191 |
| Repository | GitHub · moxystudio/node-cross-spawn · Pull request #192 |
| Repository | GitHub · moxystudio/node-cross-spawn · Commit 1b71aa51 |
| Repository | GitHub · moxystudio/node-cross-spawn · Commit 244ffeaa |
| Repository | GitHub · moxystudio/node-cross-spawn · Release v6.0.7 |
| Repository | GitHub · moxystudio/node-cross-spawn · Release v7.1.0 |
Questions about CVE-2026-137198
Is CVE-2026-137198 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Attacker-controlled text passed as arguments can split into extra arguments or consume following arguments, changing how the target program behaves. It does not by itself run other commands.
Source: github.com
Which versions are affected by CVE-2026-137198?
node-cross-spawn: from 6.0.6 before 6.0.7; from 7.0.4 before 7.1.0.
Source: cve.now feed data
Am I affected, and how do I check?
Only Windows setups where the command runs through cmd.exe, such as batch files and npm cmd-shims in node_modules/.bin. Affected cross-spawn versions are 6.0.6 to before 6.0.7 and 7.0.4 to before 7.1.0, so check the installed node-cross-spawn version in node_modules.
Source: github.com
How do I fix CVE-2026-137198?
Upgrade node-cross-spawn to 6.0.7 if on the 6.x line, or to 7.1.0 if on the 7.x line.
Source: github.com
Related
- CVE-2026-137199cross-spawn: Command injection on Windows when spawning batch files
- CVE-2026-137197cross-spawn: Command injection on Windows when the command is not a plain program name or path
- CVE-2026-103782Dell Enterprise Sonic Distribution, versions prior to 4.6.1, contains an Argument Injection vulnerability.
- CVE-2026-120382An improper neutralization of argument delimiters in a command vulnerability in the OAuth API in Synology DiskStation Manager (DSM) before…
- CVE-2026-134815simple-git before 4.1.0 Argument Injection via --exec Option in ls-remote
- CVE-2026-136629Nektos act 0.2.92 before 0.2.95 .actrc Allowlist Bypass via Argument Smuggling
No corrections so far. Something wrong on this page? Report an error.