Electerm Command Injection Vulnerability in NPM Install Script

Vulnerability

A command injection vulnerability has been identified in Electerm versions through 3.2.0. The issue arises in the NPM installation script for macOS, where the 'runMac()' function improperly appends attacker-controlled release information into an 'exec' command without any validation. This vulnerability allows for the execution of arbitrary commands, manipulation of local files, and potential escalation of access to development or runtime assets.

Impact

Exploitation of this vulnerability could lead to unauthorized command execution on the user's system, allowing attackers to manipulate files and escalate access to sensitive development or runtime resources.

Reproduction

To reproduce this vulnerability, install Electerm globally using NPM on a macOS system. The command 'npm install -g electerm' will trigger the vulnerable 'runMac()' function in the installation script.

Remediation

Users should upgrade to Electerm version 3.3.8 or later, where this vulnerability has been patched. The latest version can be downloaded from the Electerm GitHub releases page.

Added: May 8, 2026, 4:34 AM
Updated: May 8, 2026, 4:34 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
10.0
exploitability
5.0
remediation
7.7
relevance
7.8
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.