Node.js
cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*, +2 more
- ~18
- ~20
- ~21
A command injection vulnerability has been identified in Node.js versions 18.x, 20.x, and 21.x. The issue arises from improper handling of batch files in the child_process.spawn and child_process.spawnSync methods. A malicious command line argument can inject arbitrary commands and execute them, even when the shell option is disabled. This vulnerability affects all users on Windows in the active release lines.
Exploitation of this vulnerability allows for arbitrary code execution on the affected system.
Users can upgrade to Node.js versions 18.20.2, 20.15.1, or 22.4.1, all of which include the necessary fix. Instructions for updating can be found in the Node.js release blog or through the Fedora package management system.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.