cross-spawn says Windows command injection still affects 7.1.0; 3 queries listed no advisory for it
cross-spawn says a further Windows command injection affects 7.1.0, its first fixed 7.x release. At 07:25 UTC on 1 December 2026, three package advisory queries listed nothing for 7.1.0 or 6.0.7. Move to 7.1.2 or later, or 6.0.10.
By Parminder Kumar Sharma · LinkedIn · · 17 min read
A later advisory covers the first fixed versions
cross-spawn, an npm library that Node.js programs use to start other programs, released security fixes for Windows in version 7.1.0 on 28 November 2026. Version 7.1.1, which npm published 4 hours and 21 minutes later (derived), fixes a further command injection, GHSA-w3gc-668g-rf8f, according to its release notes. The project's advisory list and the CVE record for CVE-2026-137197 both put 7.1.0 inside the affected range. On the older line, 6.0.7 is inside it too.
This site then asked three sources by package what they held for cross-spawn: GitHub's global Advisory Database, the endpoint npm's documentation describes for audits, and the OSV query API. Between 07:24:58 and 07:25:32 UTC on 1 December 2026, none of them listed any advisory against 7.1.0 or 6.0.7. An earlier run of these checks by this site, from 07:14:55 UTC, gave the same result for every query the two runs shared.
The project says the flaws affect Windows only. For anyone running cross-spawn there, the targets are 7.1.2 or later, or 6.0.10 on the 6.x line. This briefing is written for people who need to patch and gives no detail of how any flaw is triggered.
Eight versions in under ten and a half hours
The first and last of these publications were 10 hours and 23 minutes apart (derived from npm's publish times). In the tables and drawings, ghv9, m6qr and w3gc stand for GitHub advisories GHSA-ghv9-86vm-4v8m (CVE-2026-137199), GHSA-m6qr-m48x-3xhh (CVE-2026-137198) and GHSA-w3gc-668g-rf8f (CVE-2026-137197). The sequence matters because the first fixed versions are not the ones to stop at, and two later releases repair something the fixes broke.
The releases of 28 and 29 November 2026. Times are npm publish times in UTC, cut to the minute; contents are from the project's release notes and npm's registry data
| Version | Published | What the project says it did | What to know |
|---|---|---|---|
| 7.1.0 | 28 Nov 18:48 | Fixes two Windows flaws: ghv9 and m6qr | Within the range for w3gc; starts the batch file break |
| 6.0.7 | 28 Nov 18:50 | The same two fixes | Within the range for w3gc; starts the same break |
| 6.0.8 | 28 Nov 23:09 | Fixes w3gc; changes Windows behaviour | Still has the break |
| 7.1.1 | 28 Nov 23:09 | Fixes w3gc; changes Windows behaviour | Still has the break |
| 7.1.2 | 29 Nov 03:57 | Repairs the break | The 7.x target |
| 6.0.9 | 29 Nov 04:08 | Published by mistake without the repair | Deprecated on npm; same as 6.0.8 |
| 6.0.10 | 29 Nov 04:15 | Repairs the break | The 6.x target |
| 8.0.0 | 29 Nov 05:12 | New major version with breaking changes | Not a drop in upgrade |
What the project and the CVE records list
The three flaws are, in neutral terms, a command injection (ghv9), an argument injection (m6qr) and a further command injection (w3gc). The project's advisories carry publication times of 28 November at 18:51 UTC for the first two and 23:12 UTC for the third. The CVE records followed on 30 November between 20:33 and 20:39 UTC, the first of them 1 day and 21 hours after 7.1.1 reached npm (derived). GitHub is the assigner named on all three.
The three flaws: project advisories and CVE records as read at 07:20 to 07:21 UTC on 1 December 2026. Ranges are written in words
| Flaw | Severity as each source gives it | Affected on 7.x and its fix | Affected below 7.0.0 |
|---|---|---|---|
| ghv9: CVE-2026-137199, command injection | Project: high. CVE record: CVSS 4.0 9.2, Critical | 7.0.0 up to, not including, 7.1.0 | All versions below 6.0.7. Fixed in 6.0.7 from 6.0.0; no patched version listed below 6.0.0 |
| m6qr: CVE-2026-137198, argument injection | Project: medium. CVE record: CVSS 4.0 8.3, High | 7.0.4 up to, not including, 7.1.0 | 6.0.6 only, fixed in 6.0.7 |
| w3gc: CVE-2026-137197, further command injection | Project: high. CVE record: CVSS 3.1 8.1, High | 7.0.0 up to, not including, 7.1.1 | All versions below 6.0.8. Fixed in 6.0.8 from 6.0.0; no patched version listed below 6.0.0 |
At 07:20 to 07:21 UTC, NVD listed all three CVEs with the status Received. The only scores in those NVD entries were the same figures, attributed to GitHub's security advisory address; they held no score assigned by NVD itself. None of the three CVE records, including those for CVE-2026-137199 and CVE-2026-137198, carried an entry added by CISA when read. The two 4.0 scores and the one 3.1 score use different versions of the scoring system, so they should not be ranked against each other.
Below 6.0.0. For ghv9 and w3gc, the CVE ranges take in every older version, and the project advisories list "below 6.0.0" with no patched version. Read those two together and there is no fix to take inside the 0.x to 5.x releases: the fixed versions the sources name are on 6.x and 7.x. The m6qr ranges do not include anything below 6.0.0. Nothing read says that a fix for the older lines is planned, or that one is not. This is not a corner case in the download figures: npm counted 6,759,725 downloads of 5.1.0 alone in the week to 29 November.
What the package queries returned
All of these were read only requests made by this site on 1 December 2026. The version queries used the package name cross-spawn and one version at a time.
Package query results, 1 December 2026. npm bulk endpoint 07:25:06 to 07:25:14 UTC; OSV query API 07:25:15 to 07:25:24 UTC. The two answered alike for every version tried
| Version tried | npm bulk and OSV query returned | Missing against the project and CVE ranges |
|---|---|---|
| 5.1.0 | ghv9, and a 2024 advisory (CVE-2024-21538) | w3gc |
| 6.0.6 | ghv9 only | m6qr and w3gc |
| 7.0.6 | ghv9 only | m6qr and w3gc |
| 6.0.7 and 7.1.0 | Nothing | w3gc |
| 6.0.8 and 7.1.1 | Nothing | None of the three; the batch file break remains |
| 6.0.10 and 7.1.2 | Nothing | None of the three |
On GitHub's global database, a request for ghv9 at 07:24:58 UTC returned a reviewed advisory rated critical, published on 1 December at 02:58:48 UTC. It names 7.1.0 as the first patched version for the range from 7.0.0, and 6.0.7 for everything below it. Requests for m6qr at 07:24:59 and w3gc at 07:25:01 answered Not Found. The list of reviewed advisories for the package, read at 07:25:02, held two: ghv9 and the 2024 one. Searches of the unreviewed set for each of the three new CVE numbers, between 07:25:03 and 07:25:05, returned empty lists.
OSV needs a closer look. A lookup by number at 07:25 returned the ghv9 advisory. For the GitHub numbers of m6qr and w3gc it replied that the advisory was not found but that an alias was, and named the CVE. Lookups of the CVE numbers did return records, for example CVE-2026-137197, last modified on 30 November at 22:00 UTC. The affected entries in those three CVE records give ranges of source code commits and name no npm package. The queries by npm package and version did not return the m6qr or w3gc records. A tool or a person searching OSV by CVE number and one searching by npm version could therefore get different answers.
Three answers are not three independent checks. OSV's data sources page lists the GitHub Advisory Database among its sources. The npm documentation pages read for this briefing do not name the database behind the registry's audit answer, so this site makes no claim about where that answer comes from.
Patched for one advisory is not patched
The field in the one advisory the queries did return says first patched version: 7.1.0, or 6.0.7. That is true of ghv9, the flaw it describes. It is not a statement that the version has no other flaw. A team on 7.0.6 that moved to exactly 7.1.0 on the strength of that field would arrive at a version for which these queries returned nothing, while the project says w3gc still affects it. The same holds for a move from 6.0.6 to 6.0.7.
The npm audit command page says the command "submits a description of the dependencies configured in your project to your default registry", and asks for a report of known vulnerabilities. It says npm 7 and later send package names and version lists to the registry's bulk advisory endpoint, and turn to a second endpoint if the first answers with an error or an invalid response. It also says: "The command will exit with a 0 exit code if no vulnerabilities were found." A build step that relies only on that exit code is relying on what the registry returned at that moment. This site did not run the command. It sent its own requests to that endpoint on the public registry; a team whose default registry is a private proxy would be asking that registry instead. npm's guide to auditing notes that "the advisory database can be updated at any time" and recommends running the audit again regularly.
GitHub's Dependabot alerts page says Dependabot scans a repository's default branch and sends alerts when a vulnerability is added to the GitHub Advisory Database or when the dependency graph changes. It also says that "Only advisories reviewed by GitHub trigger alerts" and that "New vulnerabilities may take time to appear in the GitHub Advisory Database and trigger alerts". The database page lists advisories reported on GitHub, NVD and npm's advisory database among the sources for reviewed entries, and says unreviewed ones create no Dependabot alerts. On those pages, then, an alert depends on a reviewed advisory. This site did not test Dependabot on any repository. GitHub has a commercial interest here: the same Dependabot page says assigning alerts requires a Code Security or Advanced Security licence.
Upgrading changes how Windows builds behave
7.1.0 and 6.0.7 list four Windows behaviour changes under their own heading. They include calls that used to run and now throw a TypeError, a difference in how some arguments may reach programs called from scripts, and a change to settings those scripts run under. One item also says that a certain pattern inside a user's own script remains unsafe, as it always was, and says how to change it. Upgrading the library does not edit that script, so read the item in the 7.1.0 notes or the 6.0.7 notes.
7.1.1 and 6.0.8 change behaviour again. On Windows the command must now be the name or path of a single program, with its arguments passed separately in args, as on other platforms. The notes' own example is that spawn('npm install') now fails with ENOENT where it used to run npm with install. The wording of the Windows message for a command that cannot be found also changes, which matters to any script or test that matches on that text. See the 6.0.8 notes for the 6.x version of this.
7.1.2 and 6.0.10 repair a break that began in 7.1.0 and 6.0.7. A batch file found on PATH and run by its name was given the wrong idea of its own folder. The 7.1.2 notes name Gradle, where the symptom is "Unable to access jarfile". If a Windows job started failing that way after taking an earlier fix, this site's suggestion is not to roll the security fix back but to move forward to 7.1.2 or later, or to 6.0.10 (notes). Those notes say "6.0.9 was published by mistake without this fix, and is the same as 6.0.8." npm marks 6.0.9 as deprecated with the message "Same as 6.0.8, without the fix for #203. Please use 6.0.10."
8.0.0 is a separate migration. The 8.0.0 notes say it needs Node.js 22.13 or later and is an ES module with named exports only: there is no default export, and spawn.sync() becomes spawnSync(). CommonJS code can still load it with require. The notes also list private exports and internal file imports that are gone, a Jest limitation, and further Windows changes, including some commands now rejected with a TypeError carrying the code ERR_INVALID_ARG_VALUE, and changes to how missing commands are reported and batch files are run. Node.js 8 to 22.12 can stay on 7, which the notes say still gets security fixes. npm's latest tag points to 8.0.0, so installing the package with no version asks for the new major. The 7x tag points to 7.1.2 and the 6x tag to 6.0.10.
The 6.x line. The 6.0.7 notes said: "This is the last release of the 6.x line: future fixes will only be made to 7.x and later." The 6.0.8 notes, some four hours later, said: "6.0.7 was meant to be the last release of the 6.x line. This security fix is an exception; please plan to upgrade to 7.x." Two more 6.x versions followed, the mistaken 6.0.9 and then 6.0.10, whose notes describe a bug fix and say nothing about later 6.x releases. This site's suggestion is to treat 6.0.10 as a stop on the way and to plan the move to a newer line. npm's package data gives 6.0.10 a floor of Node.js 4.8 and 7.1.2 a floor of 8.
How widely it is downloaded
npm's download counter gave 343,285,877 downloads of cross-spawn for 23 to 29 November 2026. The per version answer prints no dates, but its figures add up to exactly the same total (derived), as do the daily figures for those seven days.
Weekly downloads by line, 23 to 29 November 2026. Line totals and shares are this site's sums of npm's per version figures
| Group | Downloads (derived unless a single version) | Share (derived) |
|---|---|---|
| All 7.x versions | 316,125,158 | 92.1% |
| of which 7.0.6 alone | 294,642,439 | 85.8% |
| All 6.x versions | 18,670,861 | 5.4% |
| All versions below 6.0.0 | 8,488,103 | 2.5% |
| 8.0.0 | 1,755 | under 0.1% |
| The eight versions of 28 and 29 November, together | 6,655,694 | 1.9% |
A download is not a user, a project or an installation, and these figures cannot show how many Windows systems run the library. Nor do they measure uptake of the fix: 279,186,379 of the downloads, 81.3% (derived), were counted on 23 to 27 November, before any of the eight versions existed. The first appeared late on the 28th, and the daily figures do not split that day by hour. The counts for the new versions cover little more than a day, all of it on a Saturday and Sunday.
What the sources state, and what they do not
Stated and not stated, from what this site read on 1 December 2026
| Question | Stated | Not stated or not established |
|---|---|---|
| Platform | The project says Windows only | This site did not test any platform |
| Attacks | KEV catalogue 2026.11.30 listed none of the three | The seven release notes read say nothing of any attack, either way |
| Exposure of a given program | Affected version ranges | Whether a particular program's use of the library can be reached by an attacker |
| Older lines | No patched version listed below 6.0.0 | Whether one will be made |
| Database coverage | Timed answers for each query | Why two advisories were absent, and when that may change |
| Scale | npm download counts | Users, installations or Windows share |
The KEV catalogue version 2026.11.30, read at 07:21 UTC, is a weak test here: its release time, 19:44 UTC on 30 November, is earlier than the CVE records themselves (derived). Absence from it is not evidence that no attack has happened. This site did not read the long description text of the advisories or CVE records, so it makes no statement about what that text says on attacks.
Where the sources differ
Severity. For m6qr the project says medium, while its CVE record says High with a CVSS 4.0 score of 8.3. For ghv9 the project and the release notes say high, while the CVE record says Critical at 9.2, and GitHub's global advisory and the npm endpoint also say critical. For w3gc the project and the CVE record agree on high. This briefing reports both labels and does not pick one. For ordering the work it makes no difference, since one upgrade covers all three.
Ranges. The project splits the old releases into two rows for ghv9 and w3gc, one from 6.0.0 with a patched version and one below 6.0.0 without. The CVE records and the global ghv9 advisory use one range covering both. They take in the same versions. The difference shows in the global advisory, whose single range gives a 5.x user 6.0.7 as the first patched version. That is a fix for ghv9, and the same version is still inside the affected range for w3gc.
What to do, in order
The version targets come from the project. The order and the checks are this site's suggestions.
Take this with you
Find, upgrade, verify (this site's suggestion)
- List where Node.js work runs on Windows: developer machines, build runners including self hosted ones, runner and container images, and any Windows host running a Node.js application or tool.
- Find every copy, including nested ones, in each project and among global installs. The commands below are a start. Other package managers need their own listing tools, and software that ships its own bundled copy may need a question to its supplier.
- Check the lockfile and what is actually installed, not only package.json. A direct dependency line there says nothing about copies brought in by other packages.
- Move 7.x copies to 7.1.2 or later and 6.x copies to 6.0.10. Do not stop at 7.1.0 or 6.0.7, and skip 6.0.9. If you stay on 7, name that line when you install: the latest tag is now 8.0.0.
- Where another package holds an old version in place, upgrade that package. If you cannot, consider an npm override in the root package.json, and test it.
- For anything below 6.0.0, plan the jump to a fixed line. No patched version is listed within the older releases for ghv9 or w3gc, and a major version change can break callers.
- Commit the new lockfile, then rebuild runner images, caches and installed tools that still hold old copies.
- Run the Windows jobs. Search your own code for calls that pack a program and its arguments into one string, watch any Gradle step, and read the behaviour changes of every release you cross, including the item about what remains unsafe.
- Do not accept a clean audit or a quiet Dependabot as proof today. Record the time of each result, run it again later, and compare installed versions with the table above.
To list copies with npm, run the first, second and fourth commands in each project; the third looks at global installs. The npm ls page says nested packages show their paths, that the lockfile option reads package-lock.json and ignores the installed folder, and that the global option works on globally installed packages. The explain page covers the last command, which shows why a package is present.
npm ls cross-spawn --all
npm ls cross-spawn --all --package-lock-only
npm ls cross-spawn --all --global
npm explain cross-spawn
For nested copies, npm's update page says an update respects the version ranges that your package and its dependencies declare, so it cannot be assumed to move every copy: list them again afterwards. On overrides, the package.json page says: "Overrides are only considered in the root package.json file for a project." It adds that a direct dependency can be overridden only with the exact same version spec, and that published packages may fix their own resolutions by pinning or with a shrinkwrap file.
The question to ask today
If a Windows pipeline turned green after someone moved cross-spawn to 7.1.0 or 6.0.7, which list did the check consult, and at what time? A green result can only speak for what that list held when it was asked. The version number in the lockfile can be compared with the project's own ranges now, whatever any list says later.
Key facts
Sources
- PrimaryRelease notes for 7.1.0: the first two Windows fixes and behaviour changescross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 6.0.7: the same fixes on 6.x and the wording on the end of that linecross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 7.1.1: the third fix and a further behaviour changecross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 6.0.8: the third fix on 6.xcross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 7.1.2: repair of the batch file breakcross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 6.0.10: the same repair, and what 6.0.9 wascross-spawn projectaccessed 2026-12-01
- PrimaryRelease notes for 8.0.0: requirements and breaking changescross-spawn projectaccessed 2026-12-01
- PrimaryProject advisories: severity, ranges, patched versions and publication times (description text not read)cross-spawn project, through the GitHub APIaccessed 2026-12-01
- PrimaryCVE record for the further command injection: ranges, CVSS and publication timeCVE.orgaccessed 2026-12-01
- PrimaryCVE record for the argument injectionCVE.orgaccessed 2026-12-01
- PrimaryCVE record for the first command injectionCVE.orgaccessed 2026-12-01
- PrimaryNVD entry for CVE-2026-137197: status and score sourceNVDaccessed 2026-12-01
- PrimaryNVD entry for CVE-2026-137198: status and score sourceNVDaccessed 2026-12-01
- PrimaryNVD entry for CVE-2026-137199: status and score sourceNVDaccessed 2026-12-01
- PrimaryThe one new advisory in the global database when queriedGitHub Advisory Databaseaccessed 2026-12-01
- PrimaryReviewed advisories listed for the package when queriedGitHub Advisory Databaseaccessed 2026-12-01
- PrimaryOSV record for the first command injectionOSVaccessed 2026-12-01
- PrimaryOSV record under the CVE number, with commit rangesOSVaccessed 2026-12-01
- PrimaryOSV record under the CVE number, with commit rangesOSVaccessed 2026-12-01
- PrimaryOSV record under the CVE number, with commit rangesOSVaccessed 2026-12-01
- PrimaryData sources page: GitHub Advisory Database is listedOSVaccessed 2026-12-01
- PrimaryWhat npm audit sends, which endpoints answer and the exit codenpm Docsaccessed 2026-12-01
- PrimaryGuide to auditing: the advisory database can be updated at any timenpm Docsaccessed 2026-12-01
- PrimaryOptions for listing installed and locked copiesnpm Docsaccessed 2026-12-01
- PrimaryThe command that shows why a package is presentnpm Docsaccessed 2026-12-01
- PrimaryHow an update respects declared version rangesnpm Docsaccessed 2026-12-01
- PrimaryRules for overridesnpm Docsaccessed 2026-12-01
- PrimaryWhen Dependabot sends alerts and its stated limitationsGitHub Docsaccessed 2026-12-01
- PrimarySources and review of advisoriesGitHub Docsaccessed 2026-12-01
- PrimaryPublish times, deprecation message, tags and Node.js floorsnpm registryaccessed 2026-12-01
- PrimaryWeekly total for 23 to 29 Novembernpm download countsaccessed 2026-12-01
- PrimaryWeekly downloads by versionnpm download countsaccessed 2026-12-01
- PrimaryDaily downloads for the same weeknpm download countsaccessed 2026-12-01
- PrimaryKnown Exploited Vulnerabilities catalogue 2026.11.30CISAaccessed 2026-12-01


