Advisory

GHSA-8x35-hph8-37hq

Also known as: CVE-2026-41501

Summary

electerm has Command Injection via runLinux funtion

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-04-24 20:45 UTC
Modified
2026-05-12 17:09 UTC

Affected packages and fixes

electerm

npm · All systems

Affected

  • introduced 0, fixed 3.3.8 (semver)

Fixed versions

3.3.8

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences