# CVE-2026-54257: Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-06-15T20:20:24.000Z
- Modified: 2026-07-20T21:15:24.427Z
- Also known as: GHSA-q6m5-f73j-m9mc
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electron electron: >= 42.3.1, < 42.3.3
- electron (npm): from 42.3.1 before 42.3.3

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- GitHub: CVSS:4.0 Critical `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`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-q6m5-f73j-m9mc> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54257> (advisory)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2026-54257](https://www.cve.org/CVERecord?id=CVE-2026-54257), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-q6m5-f73j-m9mc](https://github.com/advisories/GHSA-q6m5-f73j-m9mc), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-54257](https://nvd.nist.gov/vuln/detail/CVE-2026-54257), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-54257 · Whole record: https://cve.day/CVE-2026-54257.json · Rebuilt by cve.day 2026-11-25T22:59:25.517Z
