{"id":"CVE-2018-1000136","aliases":["CVE-2018-1000136","GHSA-8xwg-wv7v-4vqp"],"related":[],"kind":"vulnerability","state":"published","title":"Electron Vulnerable to Code Execution by Re-Enabling Node.js Integration","summary":"Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values vulnerability in Webviews that can result in remote code execution. This attack appear to be exploitable via an app which allows execution of 3rd party code AND disallows node integration AND has not specified if webview is enabled/disabled. This vulnerability appears to have been fixed in 1.7.13, 1.8.4, 2.0.0-beta.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values vulnerability in Webviews that can result in remote code execution. This attack appear to be exploitable via an app which allows execution of 3rd party code AND disallows node integration AND has not specified if webview is enabled/disabled. This vulnerability appears to have been fixed in 1.7.13, 1.8.4, 2.0.0-beta.4.","source":"cvelist"},{"lang":"en","text":"A vulnerability has been discovered which allows Node.js integration to be re-enabled in some Electron applications that disable it.\n\nFor the application to be impacted by this vulnerability it must meet all of these conditions\n\n- Runs on Electron 1.7, 1.8, or a 2.0.0-beta\n- Allows execution of arbitrary remote code\n- Disables Node.js integration\n- Does not explicitly declare webviewTag: false in its webPreferences\n- Does not enable the nativeWindowOption option\n- Does not intercept new-window events and manually override event.newGuest without using the supplied options tag\n\n\n## Recommendation\n\nUpdate to `electron` version 1.7.13, 1.8.4, or 2.0.0-beta.5 or later.\n\nIf you are unable to update your Electron version can mitigate the vulnerability with the following code.\n\n```js\napp.on('web-contents-created', (event, win) => {\n  win.on('new-window', (event, newURL, frameName, disposition,\n                        options, additionalFeatures) => {\n    if (!options.webPreferences) options.webPreferences = {};\n    options.webPreferences.nodeIntegration = false;\n    options.webPreferences.nodeIntegrationInWorker = false;\n    options.webPreferences.webviewTag = false;\n    delete options.webPreferences.preload;\n  })\n})\n\n// and *IF* you don't use WebViews at all,\n// you might also want\napp.on('web-contents-created', (event, win) => {\n  win.on('will-attach-webview', (event, webPreferences, params) => {\n    event.preventDefault();\n  })\n})\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Electron, en versiones desde la 1.7 hasta la 1.7.12, desde la 1.8 hasta la 1.8.3 y desde la 2.0.0 hasta la 2.0.0-beta.3, contiene una vulnerabilidad de gestión incorrecta de valores en Webviews que puede dar como resultado la ejecución remota de código. Parece que este ataque puede ser explotable mediante una app que permite la ejecución de código de terceros, no acepta la integración de nodos y no especifica si la vista web está habilitada o deshabilitada. Esta vulnerabilidad parece haber sido solucionada en las versiones 1.7.13, 1.8.4, 2.0.0-beta.4.","source":"nvd"}],"published":"2018-03-23T19:00:00.000Z","modified":"2026-06-17T01:32:30.383Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.7.13"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.4"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-beta.1","status":"affected","fixed":"2.0.0-beta.5"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.7.0","lastAffected":"1.7.12"},{"status":"affected","introduced":">1.8.0","lastAffected":"1.8.3"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"},{"status":"affected","version":"2.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.electronjs.org/blog/webview-fix","tags":["mitigation","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.trustwave.com/Resources/SpiderLabs-Blog/CVE-2018-1000136---Electron-nodeIntegration-Bypass/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000136","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/pull/12271","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/pull/12292","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/pull/12294","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/commit/1a48ee28276e6588dbf4e70e58d78e7bfdc57043","tags":["web"],"sources":["ghsa"]},{"url":"https://electronjs.org/blog/webview-fix","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/574","tags":["web"],"sources":["ghsa"]},{"url":"https://www.trustwave.com/Resources/SpiderLabs-Blog/CVE-2018-1000136---Electron-nodeIntegration-Bypass","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2018-1000136","url":"https://www.cve.org/CVERecord?id=CVE-2018-1000136","licence":"CVE Terms of Use","modified":"2024-08-05T12:33:49.333Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xwg-wv7v-4vqp","url":"https://github.com/advisories/GHSA-8xwg-wv7v-4vqp","licence":"CC-BY-4.0","modified":"2023-11-08T03:59:35.638Z"},{"source":"nvd","name":"NVD","id":"CVE-2018-1000136","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-1000136","licence":"Public domain","modified":"2026-06-17T01:32:30.383Z"}],"updatedAt":"2026-11-25T22:57:36.997Z","epss":{"score":0.05082,"percentile":0.92538,"date":"2026-12-02T12:00:21.000Z"}}