Skip to main content
Menu
CVEs

node-cross-spawn remote code execution in Windows process spawning

Affects node-cross-spawn on Windows when a command run through cmd.exe contains quotes, spaces, or similar characters and untrusted input is passed as arguments. Fixed in 6.0.8 and 7.1.1.

CVE-2026-137197Published November 30, 2026, updated

8.1HighCNA
Exploited
No known exploitation
Fix
Fixed in 6.0.8, 7.1.1
Who is exposed
Not reported

Summary

The node-cross-spawn package on Windows lets an attacker run arbitrary commands when an application passes untrusted arguments to a command that is not written as a plain program name or path. The attacker can reach this remotely, without logging in.

Written by a model

Original description

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.

What to do

Upgrade to a fixed version: 6.0.8, 7.1.1.

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-137197 (cross-spawn: Command injection on Windows when the command is not a plain program name or path), 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-137197 (entry last updated 2026-11-30):
Affected:
- moxystudio node-cross-spawn: fixed in 6.0.8; from 7.0.0, fixed in 7.1.1
Fixed versions: 6.0.8, 7.1.1.
Conditions (all must be true for the bug to be hit):
- Runs on Windows and passes a command through cmd.exe in a form that is not a plain program name or path (contains double quotes, space, tab, comma, semicolon, equals sign, trailing whitespace, or a child-specific PATHEXT). (source: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f)
- Application passes untrusted input as arguments to the spawned command. (source: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f)
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-137197 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-137197 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-w3gc-668g-rf8f
- https://github.com/moxystudio/node-cross-spawn/pull/196
- https://github.com/moxystudio/node-cross-spawn/pull/197
- https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16
- https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1
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-137197
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-137197"}.

Affected versions

cve.now Index

25Pof 100 · provisional · methodology v3
  • 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.1/10CVSS 8.1
  • 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

  1. CVE published
  2. First seen by cve.now

Evidence 9

Questions about CVE-2026-137197

Is CVE-2026-137197 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?

On Windows, node-cross-spawn can run a command through cmd.exe when the command is not a plain program name or path, such as one containing double quotes. In that case, the spawned command can be injected with extra commands if the application passes untrusted input as arguments.

Source: github.com

Which versions are affected by CVE-2026-137197?

node-cross-spawn: before 6.0.8; from 7.0.0 before 7.1.1.

Source: cve.now feed data

Am I affected, and how do I check?

Versions of node-cross-spawn before 6.0.8, and versions 7.0.0 through 7.1.0, are affected. Check the installed version with npm ls cross-spawn or in the package-lock.json file. The setup also requires running on Windows and passing a command in one of the affected forms with untrusted arguments.

Source: github.com

How do I fix CVE-2026-137197?

Upgrade node-cross-spawn to 6.0.8 or later on the 6.x line, or to 7.1.1 or later on the 7.x line.

Source: github.com

No corrections so far. Something wrong on this page? Report an error.