The maintainer published its advisory on 28 November 2026. The GitHub CNA record assigns a CVSS 4.0 score of 9.2 Critical.Exposure depends on the application's command path and input handling. An application must pass attacker-controlled arguments to a command that cross-spawn routes through cmd.exe on Windows. The advisory excludes other platforms and its intentionally unescaped options.shell mode from this issue.
What it allows
How Does CVE-2026-137199 Lead to Command Injection?
cross-spawn runs Windows batch commands through cmd.exe. A batch file that forwards its arguments causes a second cmd.exe parse. Before the fix, cross-spawn accounted for that parse only for npm shims inside node_modules/.bin.
For other forwarding batch files, a crafted untrusted argument could escape its intended quoting and execute another command. The maintainer identifies npm.cmd, globally installed package shims and user batch files as examples. The advisory also describes trailing dots or spaces bypassing batch detection and conditional environment-variable expansion.
This is an application input path, so finding cross-spawn in a dependency tree alone does not establish exposure. The vulnerability intelligence platform is the relevant product page for teams organizing remediation. See the remote code execution definition for the broader impact category.
The Node.js Brotli vulnerability profile covers a separate runtime flaw. Here the dependency, Windows command path and untrusted argument flow determine the affected applications.
Who is affected
Which cross-spawn Versions and Applications Are Affected?
The maintainer lists all versions below 6.0.0, versions 6.0.0 through 6.0.6, and versions 7.0.0 below 7.1.0 as affected. It lists 6.0.7 and 7.1.0 as the patched releases. For older branches, plan a supported-branch upgrade and test the application's command behavior.
Check Windows applications that pass untrusted input as arguments to commands resolved to forwarding .bat or .cmd files. Inspect direct and transitive cross-spawn dependencies in the deployed lockfile. Trace whether those calls reach cmd.exe before deciding which services need urgent remediation.
Brandefense Blackhole recorded 3 dark chat posts matching CVE-2026-137199 from 2 September through 1 December 2026. This is a count of matching posts. It does not establish exploitation, an affected installation or an incident.
Review process creation records for unexpected child commands after the affected application invokes a batch file. Treat any anomaly as an investigation lead. A process anomaly alone does not identify this CVE as its cause.
Timeline
-
2026-11-28
The cross-spawn maintainer published GHSA-ghv9-86vm-4v8m with affected ranges and fixes.
-
2026-11-30
The GitHub CNA published the CVE record with a CVSS 4.0 score of 9.2.
What to do
-
Map the exposed command path
Inventory deployed cross-spawn versions and Windows callers. Confirm whether untrusted arguments reach a forwarding batch file through cmd.exe, including globally installed shims or user batch files.
-
Install a patched release
Upgrade the 6.x branch to at least 6.0.7 or the 7.x branch to at least 7.1.0. Migrate older branches to a patched supported branch and test command behavior.
-
Reduce input risk
Apply the maintainer's workaround while upgrading: allow only a safe subset of untrusted input and call executables directly instead of routing through batch files.
-
Verify the deployed fix
Rebuild and redeploy with the updated lockfile. Confirm the effective deployed cross-spawn version on each Windows application and retest its batch-file argument handling.
What Brandefense can do
- Watch your stack for exploited flaws
Name the vendors and products you run, and Brandefense alerts you when a CVE in them is exploited.
- See CVE-2026-137199 in Brandefense Atlas
The Atlas record of CVE-2026-137199: severity, exploitation status and the sources behind it.
- Vulnerability intelligence platform
Brandefense Vulnerability Intelligence follows which vulnerabilities attackers are using, so your team can patch what is under attack first.
Frequently Asked Questions
Does CVE-2026-137199 affect every Node.js application?
No. The maintainer limits this issue to Windows applications that pass untrusted arguments to commands routed through cmd.exe. The affected path includes a forwarding batch file outside the specially handled npm shims.
Which cross-spawn releases fix CVE-2026-137199?
The maintainer identifies 6.0.7 and 7.1.0 as patched releases. Check the effective version in the deployed dependency tree after updating the lockfile and rebuilding.
Can input validation replace the update?
The maintainer recommends restricting untrusted input to a safe subset and calling executables directly as workarounds. Install a patched release for the affected branch.
Sources
- Command injection on Windows when spawning batch filesmoxystudio / GitHub Security Advisory
- CVE-2026-137199 CNA recordCVE Program / GitHub CNA
- CVE-2026-137199 detailNIST National Vulnerability Database