Vulnerabilities in pkg:npm/electerm

PACKAGE
Advisory Identifier: GHSA-7p5m-v798-f8vv
Advisory Summary

CVE-2026-45353 is a CRITICAL (CVSS 7.8) electerm local code through electerm's vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Electerm libraries in the npm ecosystem. The issue involves electerm local code through electerm's single-instance socket. Remediation is available by upgrading affected packages to version 3.9.0.

13 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/electerm

13 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/electerm. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7p5m-v798-f8vv CVE-2026-45353 CRITICAL Electerm Local code through electerm's single-instance socket
GHSA-v5ff-xmfp-p245 CVE-2026-49255 HIGH electerm has Command Injection in File System Operations (rmrf, mv, cp)
GHSA-38j7-23hf-9mhc CVE-2026-49253 HIGH electerm has Path Traversal in Zmodem and Trzsz Download Filename Handling
GHSA-g29v-q6h7-76wh CVE-2026-45787 MODERATE electerm's encrypt method not safe enough
GHSA-jgg9-rw32-44pj CVE-2026-45058 CRITICAL Electerm: Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark
GHSA-x73w-g8hx-v7rp CVE-2020-23256 CRITICAL electerm allows unauthorized users to execute arbitrary commands
GHSA-mpm8-cx2p-626q CVE-2026-43944 CRITICAL Electerm users can run dangrous code through link or command line
GHSA-8x35-hph8-37hq CVE-2026-41501 CRITICAL electerm has Command Injection via runLinux funtion
GHSA-wxw2-rwmh-vr8f CVE-2026-41500 CRITICAL electerm: electerm_install_script_CommandInjection Vulnerability Report
GHSA-q4p8-8j9m-8hxj CVE-2026-43943 HIGH Electerm Security Vulnerability: RCE via malicious SSH server filename in openFileWithEditor
GHSA-37j4-88rp-2f6h CVE-2026-43942 MODERATE Electerm's full process.env exposed to renderer via window.pre.env
GHSA-fwf6-j56g-m97c CVE-2026-43941 HIGH Electerm has an unvalidated shell.openExternal that allows arbitrary protocol execution via terminal link click
GHSA-f77v-9vpc-6pjm CVE-2026-43940 CRITICAL Electerm runWidget has a path traversal that leads to arbitrary code execution

CVE-2026-45353 at a Glance

CVE Identifier CVE-2026-45353
GHSA Identifier GHSA-7p5m-v798-f8vv
Severity CRITICAL
CVSS v3.1 Base Score 7.8
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Electerm
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-45353

To remediate this vulnerability, upgrade all affected Electerm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

electerm fixed: 3.9.0
npm install electerm@3.9.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls electerm

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-45353, inspect your project dependencies using npm:

npm ls electerm

Analyze the terminal output to locate any version of Electerm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.9.0), your application is affected.

Note: The npm ls electerm command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Electerm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact _Local code execution without UI interaction: any same-user process can send a JSON payload to electerm's single-instance socket/pipe, causing the app to create tabs and potentially spawn attacker-controlled local processes. Affects electerm single-instance installs on the machine._ ### Patches - https://github.com/electerm/electerm/commit/0599e67069b00e376a2e962649aaad6096e63507 ### Workarounds - Do not run unsafe command ### References - Report / credit: https://github.com/Curly-Haired-Baboon - Electerm releases: https://github.com/electerm/electerm/releases

CVE-2026-45353 Affected Electerm Versions

1 component(s)
Fixed Versions:
3.9.0
Product / Package Ecosystem Affected Versions Fixed Version
electerm
npm
≥ 3.0.6
< 3.9.0
3.9.0

References

Frequently Asked Questions

What is CVE-2026-45353?
CVE-2026-45353 is a security vulnerability in Electerm involving Electerm Local code through electerm's single-instance socket under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Electerm versions are affected?
Affected versions include releases prior to 3.9.0 across affected packages: electerm.
What version fixes CVE-2026-45353?
Upgrading to 3.9.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electerm affected?
Yes, electerm is affected in releases prior to 3.9.0. Upgrade your dependency to 3.9.0 or later.
What is the CVSS score of CVE-2026-45353?
CVE-2026-45353 has a CVSS v3.1 base score of 7.8 (CRITICAL) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-45353?
CVE-2026-45353 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check npm dependencies for CVE-2026-45353?
Run the dependency tree command: 'npm ls electerm'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7p5m-v798-f8vv",
  "modified" : "2026-07-06T15:15:54Z",
  "published" : "2026-05-14T20:29:59Z",
  "aliases" : [ "CVE-2026-45353" ],
  "summary" : "Electerm Local code through electerm's single-instance socket",
  "details" : "### Impact\n_Local code execution without UI interaction: any same-user process can send a JSON payload to electerm's single-instance socket/pipe, causing the app to create tabs and potentially spawn attacker-controlled local processes. Affects electerm single-instance installs on the machine._\n\n### Patches\n\n- https://github.com/electerm/electerm/commit/0599e67069b00e376a2e962649aaad6096e63507\n\n### Workarounds\n\n- Do not run unsafe command \n\n### References\n- Report / credit: https://github.com/Curly-Haired-Baboon\n- Electerm releases: https://github.com/electerm/electerm/releases",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electerm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.6"
      }, {
        "fixed" : "3.9.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.8.8"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/security/advisories/GHSA-7p5m-v798-f8vv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45353"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/commit/0599e67069b00e376a2e962649aaad6096e63507"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electerm/electerm"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732", "CWE-94", "CWE-940" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-14T20:29:59Z",
    "nvd_published_at" : "2026-05-28T18:16:35Z"
  }
}