- Accueil
- Vulnérabilités
- CVE-2026-137199
CVE-2026-137199
cross-spawn: Command injection on Windows when spawning batch files
Résumé
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.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
moxystudio (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| node-cross-spawn | Versions non précisées | — | CNA (éditeur ou attributeur) |
npm (2 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| cross-spawn | de 7.0.0 (inclus) à 7.1.0 (exclu) |
7.1.0 |
GitHub Advisory |
| cross-spawn | avant 6.0.7 (exclu) |
6.0.7 |
GitHub Advisory |
Correctif
Mise à jour — npm/cross-spawn 7.1.0; npm/cross-spawn 6.0.7source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-ghv9-86vm-4v8m — cross-spawn: Command injection on Windows when spawning batch files 1 déc. 2026
Références
- https://github.com/moxystudio/node-cross-spawn/security/advisories/GHSA-ghv9-86vm-4v8mx_refsource_CONFIRM
- https://github.com/moxystudio/node-cross-spawn/issues/171x_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/pull/191x_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/pull/192x_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/commit/1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1ax_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/commit/244ffeaa8473de0080c93ebbf779bb953b94114bx_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v6.0.7x_refsource_MISC
- https://github.com/moxystudio/node-cross-spawn/releases/tag/v7.1.0x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-137199ADVISORY
- https://github.com/moxystudio/node-cross-spawnPACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:(CVSS 4.0, CNA:security-advisories@github.com)- Faiblesse
- CWE-78 · Injection de commandes / code