{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "39.8.7"
              },
              {
                "introduced": "40.0.0-alpha.1"
              },
              {
                "fixed": "40.9.0"
              },
              {
                "introduced": "41.0.0-alpha.1"
              },
              {
                "fixed": "41.2.0"
              },
              {
                "introduced": "42.0.0-alpha.1"
              },
              {
                "fixed": "42.0.0-beta.1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "a01b4becfa7bf770d2abc6f2fef7076b10005b0d"
            },
            {
              "introduced": "486a9a61d2723755adc4be5e407888d755ee3b9c"
            },
            {
              "introduced": "f4a50a8fde877075ce3877efd54578997d5e7ece"
            },
            {
              "fixed": "2d7e11a76ca841e08e31eb0121056d875f731f30"
            },
            {
              "fixed": "ea4a478a8845bc9a00064918dab6f32477807d41"
            },
            {
              "fixed": "73945911380613ad15d71147132c0153aef9b02a"
            },
            {
              "fixed": "7e84164ed9b6753bf121c982425509bdd615e8df"
            },
            {
              "fixed": "0cbdf2f0375466d701aa393c92e0ec29eb89ea6c"
            }
          ],
          "repo": "https://github.com/electron/electron",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-9pf5-hg6p-4pwp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-346"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70599.json"
  },
  "details": "Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1, serial-port and media permission checks made from an iframe passed the top-level frame origin to session.setPermissionCheckHandler instead of the requesting iframe origin. Origin-based handler logic could grant a cross-origin iframe device access intended only for the top-level origin. This issue is fixed in 39.8.7, 40.9.0, 41.2.0, and 42.0.0-beta.1.",
  "id": "CVE-2026-70599",
  "modified": "2026-08-12T03:51:23.507746725Z",
  "published": "2026-08-05T15:36:02.182Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/70xxx/CVE-2026-70599.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/electron/electron/security/advisories/GHSA-9pf5-hg6p-4pwp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-70599"
    },
    {
      "type": "FIX",
      "url": "https://github.com/electron/electron/commit/0cbdf2f0375466d701aa393c92e0ec29eb89ea6c"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Electron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe Origin"
}