CVE-2026-45058: Electerm Importing Unsafe Bookmark Data Could Vulnerability

CRITICAL
Advisory Identifier: GHSA-jgg9-rw32-44pj
Advisory Summary

CVE-2026-45058 is a CRITICAL importing unsafe bookmark data could vulnerability (CWE-494: Download of Code Without Integrity Check) affecting Electerm libraries in the npm ecosystem. The issue involves importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark. Remediation is available in the latest vendor maintenance releases.

CVE-2026-45058 at a Glance

CVE Identifier CVE-2026-45058
GHSA Identifier GHSA-jgg9-rw32-44pj
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-494: Download of Code Without Integrity Check
Affected Product Electerm
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-45058

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: Latest secure release
npm install electerm@Latest secure release
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-45058, 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 the patched release), 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-494: Download of Code Without Integrity Check, where the product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code. 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 _Persistent local-pty code execution via imported bookmarks or compromised sync targets. Affects users who import bookmark JSON files or who have electerm sync configured (gist/WebDAV). The attacker can inject `exec*` fields or global config to cause remote code to run when a bookmark is opened or when sync is applied._ ### Patches Not yet ### Workarounds - Do not import unsafe data ### References - Report / credit: https://github.com/Curly-Haired-Baboon - Electerm releases: https://github.com/electerm/electerm/releases

CVE-2026-45058 Affected Electerm Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
electerm
npm
≤ 3.8.8

References

Frequently Asked Questions

What is CVE-2026-45058?
CVE-2026-45058 is a security vulnerability in Electerm involving Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark under CWE-494: Download of Code Without Integrity Check.
Which Electerm versions are affected?
Affected versions include releases prior to current release patches across affected packages: electerm.
What version fixes CVE-2026-45058?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is electerm affected?
Yes, electerm is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2026-45058?
CVE-2026-45058 is classified under CWE-494: Download of Code Without Integrity Check (The product downloads source code or an executable from a remote location and executes the code without sufficiently verifying the origin and integrity of the code.).
How can I check npm dependencies for CVE-2026-45058?
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-jgg9-rw32-44pj",
  "modified" : "2026-06-09T10:19:27Z",
  "published" : "2026-05-14T20:15:42Z",
  "aliases" : [ "CVE-2026-45058" ],
  "summary" : "Electerm: Importing unsafe bookmark data could lead to unsafe operation when clicking local type bookmark",
  "details" : "### Impact\n_Persistent local-pty code execution via imported bookmarks or compromised sync targets. Affects users who import bookmark JSON files or who have electerm sync configured (gist/WebDAV). The attacker can inject `exec*` fields or global config to cause remote code to run when a bookmark is opened or when sync is applied._\n\n### Patches\n\nNot yet\n\n### Workarounds\n- Do not import unsafe data\n\n### References\n- Report / credit: https://github.com/Curly-Haired-Baboon\n- Electerm releases: https://github.com/electerm/electerm/releases",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electerm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "3.8.8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/security/advisories/GHSA-jgg9-rw32-44pj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45058"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electerm/electerm"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-345", "CWE-494", "CWE-915", "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-14T20:15:42Z",
    "nvd_published_at" : "2026-05-28T18:16:34Z"
  }
}