CVE-2021-45459
JavaScript vulnerability analysis and mitigation

Overview

The node-windows package before version 1.0.0-beta.6 for Node.js contains a command injection vulnerability (CVE-2021-45459) that allows attackers to execute arbitrary commands via the PID parameter in lib/cmd.js (NIST NVD, GitHub Advisory).

Technical details

The vulnerability exists in the lib/cmd.js file where the PID parameter is not properly sanitized before being used in command execution. An attacker can inject malicious commands by including shell metacharacters in the PID parameter. For example, an attacker can execute arbitrary commands by passing a PID value like '12345; calc.exe' (GitHub Advisory).

Impact

Successful exploitation of this vulnerability could lead to arbitrary command execution on the affected system. According to NetApp's security advisory, this could result in disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The vulnerability has received a CVSS v3.1 score of 9.8 (CRITICAL) (NetApp Security).

Mitigation and workarounds

The vulnerability has been fixed in node-windows version 1.0.0-beta.6. Users should upgrade to this version or later to mitigate the risk. The fix prevents arbitrary command execution by implementing proper input validation (GitHub Compare).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67731HIGH8.7
  • JavaScriptJavaScript
  • servify-express
NoYesDec 12, 2025
CVE-2025-67718HIGH8.7
  • JavaScriptJavaScript
  • formio
NoYesDec 11, 2025
CVE-2025-8083HIGH8.6
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025
CVE-2025-67750HIGH8.4
  • JavaScriptJavaScript
  • lightning-flow-scanner
NoYesDec 12, 2025
CVE-2025-8082MEDIUM6.3
  • JavaScriptJavaScript
  • vuetify
NoYesDec 12, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management