GitHub Advisoryadvisory · npm

GHSA-8x35-hph8-37hq electerm has Command Injection via runLinux funtion

CRITICAL Published 2026-04-24 Modified 2026-05-12 Official page ↗
Aliases
CVE-2026-41501
Ecosystem
npm
Packages
electerm
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-77
Reviewed
2026-04-24

Affected packages

• npm electerm: < 3.3.8 → fixed in 3.3.8

Description

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

Related

Alias · CVE (1)

  • CVE-2026-41501 electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. vulnerability

Weakness · CWE (1)

  • CWE-77 Improper Neutralization of Special Elements used in a Command weakness

References