CVE-2026-137199 cross-spawn: Command injection on Windows when spawning batch files
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
Description
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Upgrade path
30 packages: 1 fixed, 28 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/389-ds-base(Red Hat directory_server 13) | All versions | No fix listed | No fix yet |
| redhat/389-ds-base(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/389-ds:1.4/389-ds-base(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-controller(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-eda-controller(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/automation-gateway(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/cockpit-ceph-installer(Red Hat ceph_storage 4) | All versions | No fix listed | No fix yet |
| redhat/discovery/discovery-ui-rhel9(Red Hat discovery 2 el8) | All versions | No fix listed | No fix yet |
| redhat/fuse-karaf.fuse-7_13_0-00012-redhat-00001.zip(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/intel-igc(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/libarrow(Red Hat ceph_storage 9) | All versions | No fix listed | No fix yet |
| redhat/openshell(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/openshift5/ose-console-rhel9(Red Hat openshift 5) | All versions | No fix listed | No fix yet |
| redhat/openvino-genai(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/redhat-certification-cnf(Red Hat certifications 9) | All versions | No fix listed | No fix yet |
| redhat/redhat-ds:11/389-ds-base(Red Hat directory_server 11) | All versions | No fix listed | No fix yet |
| redhat/redhat-ds:12/389-ds-base(Red Hat directory_server 12) | All versions | No fix listed | No fix yet |
| redhat/redhat-fuse-maven-repository.zip(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/redhat-fuse-sources.zip(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/rh-sso-server-dist.zip(Red Hat red_hat_single_sign_on 7) | All versions | No fix listed | No fix yet |
| redhat/rhaf-hawtio-maven-repository.zip(Red Hat apache_camel_hawtio 4) | All versions | No fix listed | No fix yet |
| redhat/rhceph/rhceph-4-dashboard-rhel8(Red Hat ceph_storage 4) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat enterprise_linux_ai 3) | All versions | No fix listed | No fix yet |
| npm cross-spawn(npm) | < 6.0.7; >= 7.0.0, < 7.1.0 | 6.0.7, 7.1.0 | Fixed |
| moxystudio node-cross-spawn | = < 6.0.7; = >= 7.0.0, < 7.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm cross-spawn(npm) | >= 7.0.0, < 7.1.0 | 7.1.0 |
| npm cross-spawn(npm) | < 6.0.7 | 6.0.7 |
| moxystudio node-cross-spawn | = < 6.0.7 | No fix listed |
| moxystudio node-cross-spawn | = >= 7.0.0, < 7.1.0 | No fix listed |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-eda-controller(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/automation-gateway(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rhaf-hawtio-maven-repository.zip(Red Hat:apache_camel_hawtio:4) | All versions | No fix listed |
| redhat/cockpit-ceph-installer(Red Hat:ceph_storage:4) | All versions | No fix listed |
| redhat/rhceph/rhceph-4-dashboard-rhel8(Red Hat:ceph_storage:4) | All versions | No fix listed |
| redhat/libarrow(Red Hat:ceph_storage:9) | All versions | No fix listed |
| redhat/redhat-certification-cnf(Red Hat:certifications:9) | All versions | No fix listed |
| redhat/redhat-ds:11/389-ds-base(Red Hat:directory_server:11) | All versions | No fix listed |
| redhat/redhat-ds:12/389-ds-base(Red Hat:directory_server:12) | All versions | No fix listed |
| redhat/389-ds-base(Red Hat:directory_server:13) | All versions | No fix listed |
| redhat/discovery/discovery-ui-rhel9(Red Hat:discovery:2::el8) | All versions | No fix listed |
| redhat/intel-igc(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/389-ds:1.4/389-ds-base(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/389-ds-base(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/thunderbird(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/openshell(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/openvino-genai(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rhelai3/bootc-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-gaudi-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/bootc-rocm-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/rhelai3/disk-image-cuda-rhel9(Red Hat:enterprise_linux_ai:3) | All versions | No fix listed |
| redhat/fuse-karaf.fuse-7_13_0-00012-redhat-00001.zip(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/redhat-fuse-maven-repository.zip(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/redhat-fuse-sources.zip(Red Hat:jboss_fuse:7) | All versions | No fix listed |
| redhat/openshift5/ose-agent-installer-ui-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/openshift5/ose-console-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/rh-sso-server-dist.zip(Red Hat:red_hat_single_sign_on:7) | All versions | No fix listed |
References
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8m vendor-advisory
- https://github.com/moxystudio/node-cross-spawn/issues/171
- https://github.com/moxystudio/node-cross-spawn/pull/191 patch
- https://github.com/moxystudio/node-cross-spawn/pull/192 patch
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a patch
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114b patch
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0
- ENISA EUVD EUVD-2026-139685 third-party-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2588123 issue-tracking
- www.cve.org