electerm has Command Injection via runLinux funtion
Critical severity
GitHub Reviewed
Published
Apr 22, 2026
in
electerm/electerm
•
Updated May 12, 2026
Description
Published to the GitHub Advisory Database
Apr 24, 2026
Reviewed
Apr 24, 2026
Published by the National Vulnerability Database
May 8, 2026
Last updated
May 12, 2026
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. TherunLinux()function appends attacker-controlled remote version strings directly into anexec("rm -rf ...")command without validation.Who is impacted: Users who run
npm install -g electermin 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
References