{"id":"CVE-2026-54257","summary":"Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow","details":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 42.3.1 until 42.3.3, Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow. Most apps will crash and some may perform incorrect buffer allocations in the Node.js Buffer API resulting in unexpected truncation or allocation. This vulnerability is fixed in 42.3.3.","aliases":["GHSA-q6m5-f73j-m9mc"],"modified":"2026-07-08T07:15:49.398447793Z","published":"2026-06-23T17:08:31.786Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-120"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54257.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54257.json"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-q6m5-f73j-m9mc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54257"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/electron/electron","events":[{"introduced":"297c6e3ee41697d9d4d3bc0c9d6243b8608d55e5"},{"fixed":"22bbbc9f265d4b6f138f6dc7451891241037a780"}],"database_specific":{"extracted_events":[{"introduced":"42.3.1"},{"fixed":"42.3.3"}],"source":"AFFECTED_FIELD"}}],"versions":["v42.3.2","v42.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54257.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}