Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electerm
  4. ›
  5. GHSA-wxw2-rwmh-vr8f

GHSA-wxw2-rwmh-vr8f: electerm: electerm_install_script_CommandInjection Vulnerability Report

April 16, 2026

What kind of vulnerability is it? Who is impacted?

Two Command Injection vulnerabilities in electerm:

  1. macOS Installer (electerm_CommandInjection_02): A command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec("open ...") command without validation.

  2. Linux Installer (electerm_CommandInjection_01): 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. 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.


References

  • github.com/advisories/GHSA-wxw2-rwmh-vr8f
  • github.com/electerm/electerm
  • github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee
  • github.com/electerm/electerm/security/advisories/GHSA-wxw2-rwmh-vr8f

Code Behaviors & Features

Detect and mitigate GHSA-wxw2-rwmh-vr8f with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.3.8

Fixed versions

  • 3.3.8

Solution

Upgrade to version 3.3.8 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

npm/electerm/GHSA-wxw2-rwmh-vr8f.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:17:44 +0000.