CVE-2026-137197

8.1High

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

8.1CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
High
Privileges
None
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-78

What an attacker gets

Remote attackers can execute arbitrary commands on Windows hosts by passing malicious arguments to spawn functions. This requires the application to process untrusted input as arguments to commands executed via cmd.exe.

Root cause

The library fails to correctly escape arguments when cmd.exe resolves a batch file, allowing command metacharacter injection.

Affected versions

cross-spawn versions prior to 6.0.8 and 7.1.1 on Windows

CVSS v3.1 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade cross-spawn to version 6.0.8 or 7.1.1. Ensure all untrusted input passed to spawn or spawnSync is strictly validated or sanitized before execution.

remediation — bash
$ npm install cross-spawn@latest

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-137197

More fully triaged vulnerabilities you may want to check next.