CVE-2026-45787: Electerm Electerm's Encrypt Method Not Safe Vulnerability

MODERATE
Advisory Identifier: GHSA-g29v-q6h7-76wh
Advisory Summary

CVE-2026-45787 is a MODERATE electerm's encrypt method not safe vulnerability (CWE-759: Use of a One-Way Hash without a Salt) affecting Electerm libraries in the npm ecosystem. The issue involves electerm's encrypt method not safe enough. Remediation is available by upgrading affected packages to version 3.9.5.

CVE-2026-45787 at a Glance

CVE Identifier CVE-2026-45787
GHSA Identifier GHSA-g29v-q6h7-76wh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-759: Use of a One-Way Hash without a Salt
Affected Product Electerm
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-45787

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.5
npm install electerm@3.9.5
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-45787, 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.5), 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-759: Use of a One-Way Hash without a Salt, where the product uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the product does not also use a salt as part of the input. 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 _Insecure sync encryption: deterministic AES-192-CBC with a fixed zero IV, constant KDF salt, and no MAC leads to confidentiality and integrity failures for synced bookmark/profile data. Attackers can crack common passwords across installs and perform undetected ciphertext bit-flips to alter config/bookmarks._ ### Patches - https://github.com/electerm/electerm/commit/9dd8295e37d53396b980cd45dfc5ed11ad79b937 ### Workarounds - No ### References - Report / credit: https://github.com/Curly-Haired-Baboon - Electerm releases: https://github.com/electerm/electerm/releases

CVE-2026-45787 Affected Electerm Versions

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

References

Frequently Asked Questions

What is CVE-2026-45787?
CVE-2026-45787 is a security vulnerability in Electerm involving electerm's encrypt method not safe enough under CWE-759: Use of a One-Way Hash without a Salt.
Which Electerm versions are affected?
Affected versions include releases prior to 3.9.5 across affected packages: electerm.
What version fixes CVE-2026-45787?
Upgrading to 3.9.5 (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.5. Upgrade your dependency to 3.9.5 or later.
What CWE is associated with CVE-2026-45787?
CVE-2026-45787 is classified under CWE-759: Use of a One-Way Hash without a Salt (The product uses a one-way cryptographic hash against an input that should not be reversible, such as a password, but the product does not also use a salt as part of the input.).
How can I check npm dependencies for CVE-2026-45787?
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-g29v-q6h7-76wh",
  "modified" : "2026-06-09T10:20:23Z",
  "published" : "2026-05-14T20:30:04Z",
  "aliases" : [ "CVE-2026-45787" ],
  "summary" : "electerm's encrypt method not safe enough",
  "details" : "### Impact\n_Insecure sync encryption: deterministic AES-192-CBC with a fixed zero IV, constant KDF salt, and no MAC leads to confidentiality and integrity failures for synced bookmark/profile data. Attackers can crack common passwords across installs and perform undetected ciphertext bit-flips to alter config/bookmarks._\n\n### Patches\n\n- https://github.com/electerm/electerm/commit/9dd8295e37d53396b980cd45dfc5ed11ad79b937\n\n### Workarounds\n\n- No\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:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electerm"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.9.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/security/advisories/GHSA-g29v-q6h7-76wh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-45787"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/commit/9dd8295e37d53396b980cd45dfc5ed11ad79b937"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electerm/electerm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electerm/electerm/releases/tag/v3.9.5"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-326", "CWE-329", "CWE-353", "CWE-759", "CWE-916" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-14T20:30:04Z",
    "nvd_published_at" : "2026-05-28T18:16:35Z"
  }
}