{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "42.3.1"
              },
              {
                "fixed": "42.3.3"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "297c6e3ee41697d9d4d3bc0c9d6243b8608d55e5"
            },
            {
              "fixed": "22bbbc9f265d4b6f138f6dc7451891241037a780"
            }
          ],
          "repo": "https://github.com/electron/electron",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-q6m5-f73j-m9mc"
  ],
  "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"
  },
  "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.",
  "id": "CVE-2026-54257",
  "modified": "2026-07-08T05:39:10.311650696Z",
  "published": "2026-06-23T17:08:31.786Z",
  "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"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow"
}