CVE-2026-41501: electerm has Command Injection via runLinux funtion
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.
Published Apr 24, 2026 · Updated May 12, 2026
Affected packages
electerm
- Ecosystem
- npm
- Affected
- < 3.3.8
- Fixed in
- 3.3.8
- Check
npm ls electerm
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to nnin-nnin, FORIMOC.
References
- https://github.com/electerm/electerm/security/advisories/GHSA-8x35-hph8-37hq
- https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee
- https://nvd.nist.gov/vuln/detail/CVE-2026-41501
- https://github.com/electerm/electerm/releases/tag/v3.3.8
- https://github.com/advisories/GHSA-8x35-hph8-37hq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-45058
Electerm: Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark
critical9.4No fixMay 14, 2026CVE-2026-45353
Electerm Local code through electerm's single-instance socket
critical7.8May 14, 2026CVE-2026-43940
Electerm runWidget has a path traversal that leads to arbitrary code execution
critical9.8May 8, 2026CVE-2026-43944
Electerm users can run dangrous code through link or command line
critical9.6May 8, 2026CVE-2026-41500
electerm: electerm_install_script_CommandInjection Vulnerability Report
critical9.8Apr 16, 2026
