Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electerm
  4. ›
  5. CVE-2026-41501

CVE-2026-41501: electerm has Command Injection via runLinux funtion

April 24, 2026 (updated May 8, 2026)

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.


References

  • github.com/advisories/GHSA-8x35-hph8-37hq
  • github.com/electerm/electerm
  • github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee
  • github.com/electerm/electerm/security/advisories/GHSA-8x35-hph8-37hq
  • nvd.nist.gov/vuln/detail/CVE-2026-41501

Code Behaviors & Features

Detect and mitigate CVE-2026-41501 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

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

npm/electerm/CVE-2026-41501.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:18:01 +0000.