SocWatch

CVE-2026-137199

Kritisch 9,2 PoC auf GitHub

cross-spawn: Command injection on Windows when spawning batch files

CVSS
9,2 (v4.0)
Angriffswahrscheinlichkeit (EPSS)
1,09 % (höher als 66,4 % aller Lücken)
Veröffentlicht
30.11.2026
Zuletzt geändert
01.12.2026

Öffentlicher Angriffscode

Ein Proof of Concept auf GitHub, darunter googlesky/CVE-2026-137199. Ungeprüft: solche Repositories enthalten manchmal selbst Schadcode.

Beschreibung

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.

Betroffene Pakete

Paket Betroffen Behoben in
npm cross-spawn ab 7.0.0 vor 7.1.0; alle Versionen vor 6.0.7 7.1.0, 6.0.7

Quellen

Weitere Kennungen

GHSA-ghv9-86vm-4v8m · CWE-78

Sind Ihre Projekte betroffen?

Prüfen Sie ein Lockfile kostenlos oder lassen Sie Ihre Repositories laufend überwachen.