{"id":"CVE-2020-4077","published":"2020-07-07T00:05:16Z","modified":"2024-08-04T07:52:20Z","title":"Context isolation bypass via contextBridge in Electron","vendor":"electron","product":"electron","tier":"tail","description":{"text":"In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, there is a context isolation bypass. Code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. Apps using both `contextIsolation` and `contextBridge` are affected. This is fixed in versions 9.0.0-beta.21, 8.2.4 and 7.2.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01003,"percentile":0.63651,"provenance":"source"},"cwes":[{"id":"CWE-501","name":"Trust Boundary Violation"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-h9jc-284h-533g","tags":["x_refsource_CONFIRM"]},{"url":"https://www.electronjs.org/releases/stable?page=3#release-notes-for-v824","tags":["x_refsource_MISC"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":12.73},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":[">= 9.0.0-beta.0, <= 9.0.0-beta.20",">= 8.0.0, < 8.2.4","< 7.2.4"]}],"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":["<7.2.4",">=8.0.0, <8.2.4"],"patched":["7.2.4","8.2.4"],"from":["GHSA-h9jc-284h-533g"],"provenance":"source"}],"euvd":{"id":"EUVD-2020-0558","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-electron-cve-2020-4077","children":[{"from":"CVE-2020-4077","to":"CVE-2026-70610","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["shell/renderer/api/electron_api_context_bridge.cc"],"commits":["https://github.com/electron/electron/commit/b8e347709245d2dc5640fbb3044d9b21b4eaa6b0","https://github.com/electron/electron/commit/17d5d26499cd279fab48f5f26527f8edc02a7713","https://github.com/electron/electron/commit/23a6efb714dec80e2cf45d3054d18d701162e4dd"],"basis":"shared function","functions":["CreateProxyForAPI"]}]}]}}