Security mailing lists by PureSourceCode

CVE-2026-137199

CRITICAL 9.2CVSS 4.0

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

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.

Published
30 Nov 2026
Last modified
1 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Received
Weakness
CWE-78
Also known as
GHSA-ghv9-86vm-4v8m
Sources
NVDJSONCVE ListJSONOSV GHSA-ghv9-86vm-4v8mJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 CRITICAL 9.2 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:X/V:X/RE:X/U:X
CVE List GitHub_M CVSS 4.0 CRITICAL 9.2 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
OSV GitHub CVSS 4.0 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
CVE List CISA-ADP SSVC Exploitation: none; Automatable: no; Technical Impact: total

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List moxystudio node-cross-spawn = < 6.0.7; = >= 7.0.0, < 7.1.0
OSV npm cross-spawn >= 7.0.0, < 7.1.0 7.1.0
OSV npm cross-spawn < 6.0.7 6.0.7

References

History

  • 1 Dec 2026 20:28 UTC · NVD: updated (other details)
  • 1 Dec 2026 19:30 UTC · CVE List: updated (other details)
  • 1 Dec 2026 04:03 UTC · OSV: first stored (published 1 Dec 2026)
  • 30 Nov 2026 21:25 UTC · NVD: first stored (published 30 Nov 2026)
  • 30 Nov 2026 21:08 UTC · CVE List: first stored (published 30 Nov 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.