CVE-2026-45787: Electerm Electerm's Encrypt Method Not Safe Vulnerability
MODERATECVE-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
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.
npm install electerm@3.9.5
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
CVE-2026-45787 Affected Electerm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
electerm
|
npm |
< 3.9.5
|
3.9.5
|
References
Frequently Asked Questions
What is CVE-2026-45787?
Which Electerm versions are affected?
What version fixes CVE-2026-45787?
Is electerm affected?
What CWE is associated with CVE-2026-45787?
How can I check npm dependencies for CVE-2026-45787?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}