CVE-2026-137198
cross-spawn: Argument injection on Windows via backslashes before a double quote
Check your servers for CVE-2026-137198
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-137198 affects node-cross-spawn, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity high, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.56%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 48.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Dec 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| node-cross-spawn |
affected >= 6.0.6, < 6.0.7 affected >= 7.0.4, < 7.1.0
|
Is my server affected?
Find the installed version of node-cross-spawn and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i node-cross-spawn
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-137198 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-137198RHEL, Rocky, Alma, Fedora
rpm -q node-cross-spawn
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-137198Alpine
apk list --installed | grep -i node-cross-spawnWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-137198
trivy image --scanners vuln IMAGE | grep CVE-2026-137198
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/moxystudio/node-cross-spawn/pull/191 github.com
- https://github.com/moxystudio/node-cross-spawn/pull/192 github.com
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a github.com
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b github.com
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7 github.com
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0 github.com
Source: the record CVE-2026-137198 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse