cross-spawn: Command injection on Windows when the command is not a plain program name or path
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.8 and 7.1.1, applications running on Windows that pass untrusted arguments can be vulnerable when a command sent through cmd.exe is not written as a plain program name or path. Commands containing quotes, command-name delimiters, trailing whitespace, or a child-specific PATHEXT could cause cross-spawn to miss that cmd.exe would resolve a batch file. The arguments were then escaped as though the target were a regular program, allowing command metacharacters in an argument to be interpreted by cmd.exe and execute arbitrary commands. Applications are affected only when they use one of these command forms and pass untrusted input as arguments. This issue is fixed in versions 6.0.8 and 7.1.1.
Affected Packages
No package information available.
chore(deps): bump cross-spawn from 7.0.6 to 7.1.2
Open about 2 hours agochore(deps): bump cross-spawn from 7.0.6 to 7.1.2
Open about 3 hours agoBump cross-spawn from 7.0.6 to 7.1.2 in /eng/packages/http-client-csharp-provisioning
Open about 3 hours agoBump cross-spawn from 7.0.3 to 7.1.2
Open about 4 hours agodeps-dev(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2
Closed about 4 hours agobuild(deps): bump cross-spawn from 7.0.6 to 7.1.2 in /web
Open about 5 hours agoBump cross-spawn from 7.0.6 to 7.1.2
Closed about 6 hours agochore(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2
Closed about 6 hours agoBump cross-spawn from 7.0.6 to 7.1.2
Open about 6 hours agobuild(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /algo22-terminal
Open about 7 hours agobuild(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /examples/floci/CommunityToolkit.Aspire.Hosting.Floci.AppHost.TypeScript
Closed about 7 hours agobuild(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /examples/javascript-ext/CommunityToolkit.Aspire.Hosting.JavaScript.Extensions.AppHost.TypeScript
Closed about 7 hours agobuild(deps): bump cross-spawn from 6.0.5 to 6.0.10
Open about 7 hours agochore(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /vscode-joss
Closed about 8 hours agobuild(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /examples/sql-database-projects/CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects.AppHost.TypeScript
Closed about 8 hours agochore(deps)(deps): bump cross-spawn from 7.0.6 to 7.1.2 in the npm_and_yarn group across 1 directory
Open about 8 hours agobuild: bump cross-spawn from 7.0.6 to 7.1.2 in /steward/frontend
Open about 8 hours agobuild(deps): bump cross-spawn from 7.0.6 to 7.1.2
Closed about 8 hours agobuild(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /faucet/backend
Open about 9 hours agochore(deps)(deps-dev): bump cross-spawn from 7.0.6 to 7.1.2 in /web
Closed about 9 hours agoBump cross-spawn from 7.0.6 to 7.1.2 in /drupal/modules/avoindata-ckeditor5-plugins
Open about 9 hours agoActions
Advisory Details
| Published: | November 30, 2026 about 16 hours ago |
| Updated: | December 01, 2026 about 10 hours ago |
| CVSS Score: | 8.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Source: | Osv |
| UUID: | CVE-2026-137197 |
PR Statistics
References
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137197.json
- https://github.com/moxystudio/node-cross-spawn/commit/4a15965b05415e9f817315206771b25558804b16
- https://github.com/moxystudio/node-cross-spawn/commit/d0ead352a7380492cbb0f6548fa86f19448323c9
- https://github.com/moxystudio/node-cross-spawn/pull/196
- https://github.com/moxystudio/node-cross-spawn/pull/197
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.8
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.1
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-w3gc-668g-rf8f
- https://nvd.nist.gov/vuln/detail/CVE-2026-137197