Skip to main content

CVE-2026-41501 — Vulnerability in electerm — CVE Details

CRITICAL

electerm has Command Injection via runLinux funtion

Published April 24, 2026Updated May 12, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (2.49%). Schedule for your next planned update.

Does your project use an affected electerm version?

Paste your package-lock.json to check it for CVE-2026-41501 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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

Advisory Timeline

  • First published April 24, 2026 (216 days ago).
  • Last revised May 12, 2026 — 18 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update electerm to 3.3.8 or later
npm install electerm@3.3.8

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageFixed In
electerm npm · Affected: All versions3.3.8

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2026-41501?
electerm has Command Injection via runLinux funtion. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-41501?
CVE-2026-41501 affects electerm. It has a 2.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-41501 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
2.49%
EPSS percentile: 85.4

This places it in the top quartile of EPSS-scored vulnerabilities — 85.4% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-8x35-hph8-37hq

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json