GHSA-8x35-hph8-37hq

Suggest an improvement
Source
https://github.com/advisories/GHSA-8x35-hph8-37hq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-8x35-hph8-37hq/GHSA-8x35-hph8-37hq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-8x35-hph8-37hq
Aliases
  • CVE-2026-41501
Published
2026-04-24T20:45:13Z
Modified
2026-05-12T17:09:57.798634Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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

Database specific
{
    "severity": "CRITICAL",
    "cwe_ids": [
        "CWE-77"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-24T20:45:13Z",
    "nvd_published_at": "2026-05-08T04:16:17Z"
}
References

Affected packages

npm / electerm

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.3.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-8x35-hph8-37hq/GHSA-8x35-hph8-37hq.json"