CVE-2026-45058: Electerm Importing Unsafe Bookmark Data Could Vulnerability
CRITICALCVE-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
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.
npm install electerm@Latest secure release
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
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?
Which Electerm versions are affected?
What version fixes CVE-2026-45058?
Is electerm affected?
What CWE is associated with CVE-2026-45058?
How can I check npm dependencies for CVE-2026-45058?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}