Skip to main content

cross-spawn CVE-2026-137198

| EUVDEUVD-2026-139683 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-11-30 security-advisories@github.com
8.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply untrusted argument with trailing backslashes
  2. Exploit
    cross-spawn under-doubles backslashes before quote
  3. Execution
    Closing quote escaped, tokens split into extra arguments
  4. Impact
    Target program acts on injected/consumed arguments

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires ALL of the following: the target runs on Windows (other platforms are explicitly unaffected); the command is routed through cmd.exe - which includes every npm cmd-shim/batch file in node_modules/.bin; the application passes attacker-controlled untrusted input as a command argument; and the running cross-spawn version is 6.0.6 or 7.0.4-7.0.6. The attacker input must contain two or more backslashes immediately before a double quote or at the argument's end (e.g. 'x\\"' or a path like 'C:\some\dir\\') to escape the closing quote. LIMITING factors: impact depends on the invoked target program - a tool that accepts extra flags acts on injected arguments (e.g. '--check' turned into '--write'), whereas a tool that rejects unexpected arguments merely fails; the flaw cannot execute a second command; and the only complete fix per the vendor is updating to 6.0.7 or 7.1.0 (workaround: validate untrusted input to a safe subset).

Impact

This is a genuine but bounded Windows-only argument-injection flaw (CWE-88) in cross-spawn, a near-ubiquitous npm dependency. The input provides a CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L) scoring 8.3; the high score is driven by VI:H (integrity) and network reachability of untrusted input, while AC:H and AT:P correctly reflect that successful injection depends on both a crafted backslash pattern and the target program's willingness to accept the resulting extra/consumed arguments. KEV status is NO (not confirmed actively exploited), and no EPSS score is provided in the input, so widespread opportunistic exploitation cannot be asserted. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious dependency issue that warrants prompt patching rather than crisis response. The real-world risk is nuanced: the integrity impact is real but limited - it changes a target program's arguments/operation and does NOT by itself execute a second command, and non-Windows platforms are entirely unaffected. The practical priority therefore comes less from raw severity than from cross-spawn's enormous transitive dependency footprint across Windows Node.js tooling (every npm cmd-shim in node_modules/.bin is in scope). Conflicting-signal note: the CVSS vector is CVSS 4.0 only - no CVSS 3.1 vector is supplied in the input - and no EPSS/KEV telemetry is present, so exploitation likelihood is inferred from the mechanism, not measured.

Exploit ScenarioDerived

A Windows Node.js application or build tool passes attacker-controlled input (for example a path or filename) as an argument to a command executed via an npm cmd-shim in node_modules/.bin, which routes through cmd.exe. The attacker supplies a value ending in a run of backslashes before a double quote (e.g. 'x\\" --write'); because the vulnerable version under-doubles those backslashes, the closing quote is escaped and '--write' splits off as a separate argument, silently altering the invoked tool's behavior while the command still exits successfully. The GHSA advisory includes a demonstration snippet; it is not verified as standalone working exploit code, and no CISA KEV or confirmed in-the-wild exploitation is reported.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

Argument injection in cross-spawn 6.0.6 and 7.0.4 through 7.0.6 on Windows allows unauthenticated remote attackers who control argument values to split a single quoted argument into additional arguments when the command is routed through cmd.exe, including every npm cmd-shim in node_modules/.bin. Because runs of two or more backslashes before a double quote or at the end of an argument were not doubled correctly, the argument's closing quote can be escaped, so an injected flag such as --write can replace a caller's intended --check, or following arguments can be swallowed entirely; the flaw cannot execute a second command and does not affect other platforms. The caller often cannot detect success, since the target may accept the extra arguments and exit cleanly. No public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor's only complete fix is updating to 6.0.7 or 7.1.0.

RemediationAI

Vendor-released patch: cross-spawn 7.1.0 for the 7.x line (PR #191, commit 1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a) and 6.0.7 for the 6.x line (PR #192, commit 244ffeaa8473de0080c93ebbf779bb953b94114b); upgrade to the fix matching your major version, or move to 7.1.0 or later, and regenerate/refresh any bundled node_modules to ensure the patched copy is the one resolved at runtime. The vendor states updating is the only complete fix; the documented workaround is to validate untrusted input so that only a safe subset is allowed before it reaches cross-spawn arguments. Note that 7.1.0/6.0.7 also change behavior: commands and arguments containing CR or LF now throw a TypeError when executed through cmd.exe, and batch-file arguments are escaped with double quotes rather than ^ escapes, so test scripts that previously passed line breaks or relied on caret escaping before deploying. Advisory: https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-m6qr-m48x-3xhh. Because exploitation requires Windows plus cmd.exe routing plus attacker-controlled arguments, inventorying dependencies that still pin 6.0.6 or 7.0.4-7.0.6 (many via transitive locks) is the practical prioritization step consistent with a this-week remediation cadence rather than emergency handling.

Affected VersionsENISA

node-cross-spawn 7.0.4, < 7.1.0
node-cross-spawn 6.0.6, < 6.0.7

Affected Packages

euvd node_cross_spawn fix: 6.0.7, 7.1.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

cross-spawn is a widely used npm wrapper that normalizes child_process.spawn/spawnSync behavior across platforms. On Windows, when a command must be executed through cmd.exe - most notably .bat/.cmd shims auto-generated in node_modules/.bin that re-parse their arguments via %* or "%~1" - arguments must be quoted according to the Microsoft C runtime rules, where backslashes are literal except when they immediately precede a double quote, in which case each backslash must be doubled and the quote escaped. CWE-88 (Improper Neutralization of Argument Delimiters) applies: a regression introduced while fixing the ReDoS issue GHSA-3xgq-45jj-v275 in 7.0.4/7.0.5/7.0.6 and 6.0.6 changed the backslash-doubling regular expressions so that runs of backslashes were not doubled (7.0.4) or only gained a single backslash (7.0.5, 7.0.6, 6.0.6), leaving the closing quote escapable. The upstream fix replaces the regex approach with a linear-time loop that correctly doubles any number of backslashes, introduces a distinct escaping strategy for batch files that relies on double quotes rather than ^ escapes (the approach Rust adopted after BatBadBut, CVE-2024-24576), rejects CR/LF in commands and arguments because cmd.exe treats them as command separators, neutralizes %VAR% expansion using the %%cd:~,% trick, and passes /e:on and /v:off to cmd.exe so extensions are enabled and delayed expansion is disabled regardless of registry settings. Related Windows trailing-dot/space handling is addressed by referencing CVE-2024-36138. Deployment scope is explicit: only Windows invocations that reach cmd.exe are affected; per the independent assessment, exploitation additionally requires the application to pass attacker-controlled input as an argument containing two or more backslashes immediately before a double quote or at the argument's end.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.3 HIGH
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
vuln.today AI 6.5 MEDIUM

AV:N since untrusted args may arrive remotely; AC:H because success needs a crafted backslash/quote pattern and a cooperating target; PR:N/UI:N per the npm-dependency call path; I:H and A:L, no confidentiality impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 30, 2026 - 22:20 EUVD
CVE Published
Nov 30, 2026 - 21:17 cve.org
HIGH 8.3

DescriptionCVE.org

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.

Technical POC Analysis

CWE-88, improper neutralization of argument delimiters.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-137198 is a high-severity argument injection vulnerability in the cross-spawn library (versions 6.0.6 and 7.0.4-7.0.6) that impacts Windows systems where attackers can influence command-line arguments. This flaw could allow unauthenticated remote attackers to manipulate command behavior, potentially leading to unauthorized file writes or bypassing security checks in applications relying on cross-spawn, thereby affecting the integrity of business operations and sensitive data. Leadership should prioritize remediation given the widespread use of cross-spawn in npm-based toolchains and the potential for silent exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 52% exploitable
Prevalence
Ubiquitous
cross-spawn is a foundational npm dependency pulled transitively into most Node.js toolchains
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy