CVE-2026-54257
JSON

9.3critical

Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow

Severity
9.3critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-q6m5-f73j-m9mc

Description

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.

Affected

Product or packageVersionsReported by
electron electron>= 42.3.1, < 42.3.3CVE List
electron (npm)from 42.3.1 before 42.3.3GitHub Advisory Database

All scores

GitHub_M9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-120

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Most apps will crash and some may perform incorrect buffer allocations in the Node.js Buffer API resulting in unexpected truncation or allocation.

Workarounds

No workarounds. Do not use these impacted Electron releases

Fixed Versions
  • 42.3.3
For more information

If you have any questions or comments about this advisory, email us at security@electronjs.org

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54257 changed 2026-06-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-q6m5-f73j-m9mc changed 2026-07-20CC-BY-4.0
NVDCVE-2026-54257 changed 2026-06-25Public domain