Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply untrusted argument with trailing backslashes
-
Exploitcross-spawn under-doubles backslashes before quote
-
ExecutionClosing quote escaped, tokens split into extra arguments
-
ImpactTarget 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
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
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-139683
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB