{"id":"CVE-2018-15685","aliases":["EUVD-2018-0403","GHSA-hv9c-qwqg-qj3v"],"status":"published","title":"Electron webPreferences vulnerability can be used to perform remote code execution","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.","severity":{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.10297,"percentile":0.95729,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-1188"],"published":"2018-08-23T05:00:00Z","modified":"2026-10-24T10:30:30Z","exploits":[{"source":"exploitdb","id":"EDB-45272","title":"Electron WebPreferences - Remote Code Execution","type":"remote","platform":"multiple","date":"2018-08-27","verified":true,"url":"https://www.exploit-db.com/exploits/45272"}],"fixes":[{"ecosystem":"npm","package":"electron","fixed_in":["1.7.16","1.8.8","2.0.8","3.0.0-beta.7"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"electron","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.7.0"},{"fixed":"1.7.16"}]}]},{"source":"ghsa","ecosystem":"npm","package":"electron","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.0"},{"fixed":"1.8.8"}]}]},{"source":"ghsa","ecosystem":"npm","package":"electron","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.8"}]}]},{"source":"ghsa","ecosystem":"npm","package":"electron","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0-beta.1"},{"fixed":"3.0.0-beta.7"}]}]},{"source":"osv","ecosystem":"npm","package":"electron","ranges":[{"type":"SEMVER","events":[{"introduced":"1.7.0"},{"fixed":"1.7.16"}]}]},{"source":"osv","ecosystem":"npm","package":"electron","ranges":[{"type":"SEMVER","events":[{"introduced":"1.8.0"},{"fixed":"1.8.8"}]}]},{"source":"osv","ecosystem":"npm","package":"electron","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.8"}]}]},{"source":"osv","ecosystem":"npm","package":"electron","ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0-beta.1"},{"fixed":"3.0.0-beta.7"}]}]}],"products":[{"vendor":"electronjs","product":"electron"}],"references":[{"url":"https://www.exploit-db.com/exploits/45272/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://electronjs.org/blog/web-preferences-fix","tags":["x_refsource_MISC","x_transferred","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-15685","tags":["advisory"]},{"url":"https://www.contrastsecurity.com/security-influencers/cve-2018-15685","tags":["web"]},{"url":"https://www.npmjs.com/advisories/732","tags":["web"]},{"url":"https://github.com/electron/electron/commit/519a02d8d4d28e8a467acb40fb26172a80c9454f","tags":["web"]},{"url":"https://github.com/electron/electron/commit/80221e52d93a96ea704cb6748ead669c55cff504","tags":["web"]},{"url":"https://github.com/electron/electron/commit/bab968ca776be28791e4dddfd50c86bd5fae62fa","tags":["web"]},{"url":"https://github.com/electron/electron/commit/ef0a6d9a1c96efc4657c6dd3a6624eba969f095b","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hv9c-qwqg-qj3v"},{"url":"https://github.com/electron/electron","tags":["package"]},{"url":"https://www.exploit-db.com/exploits/45272","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-15685","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.","status":"published","published":"2018-08-23T05:00:00Z","modified":"2024-08-05T10:01:54.447Z","updated_at":"2026-11-02T14:35:03.825765Z"}],"euvd":[{"id":"EUVD-2018-0403","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.","status":"published","published":"2018-08-23T05:00:00Z","modified":"2024-08-05T10:01:54Z","updated_at":"2026-11-03T02:39:44.201018Z"}],"ghsa":[{"id":"GHSA-hv9c-qwqg-qj3v","title":"Electron webPreferences vulnerability can be used to perform remote code execution","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a webPreferences vulnerability that can be leveraged to perform remote code execution.\n\nMore information to determine if you are impacted can be found on the [electron blog](https://electronjs.org/blog/web-preferences-fix).\n\n\n## Recommendation\n\nUpgrade Electron to \u003e=3.0.0-beta.7, \u003e=2.0.8, \u003e=1.8.8, or \u003e=1.7.16.","status":"published","published":"2018-08-23T19:12:08Z","modified":"2023-01-11T05:08:04Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1188"],"updated_at":"2026-11-02T14:36:13.23016Z"}],"nvd":[{"id":"CVE-2018-15685","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.","status":"published","published":"2018-08-23T05:29:00.227Z","modified":"2026-06-17T01:42:55.87Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-1188"],"updated_at":"2026-11-02T14:04:36.842579Z"}],"osv":[{"id":"CVE-2018-15685","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a WebPreferences vulnerability that can be leveraged to perform remote code execution.","status":"published","published":"2018-08-23T05:29:00.227Z","modified":"2026-10-24T10:30:30.497688913Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:08.242347Z"},{"id":"GHSA-hv9c-qwqg-qj3v","title":"Electron webPreferences vulnerability can be used to perform remote code execution","description":"GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and \"nativeWindowOpen: true\" or \"sandbox: true\" options, is affected by a webPreferences vulnerability that can be leveraged to perform remote code execution.\n\nMore information to determine if you are impacted can be found on the [electron blog](https://electronjs.org/blog/web-preferences-fix).\n\n\n## Recommendation\n\nUpgrade Electron to \u003e=3.0.0-beta.7, \u003e=2.0.8, \u003e=1.8.8, or \u003e=1.7.16.","status":"published","published":"2018-08-23T19:12:08Z","modified":"2023-11-08T03:59:57.849311Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1188"],"updated_at":"2026-11-02T15:46:49.621585Z"}]}}
