CVE-2018-15685

CVE-2018-15685 is a high-severity security vulnerability in electron (npm), affecting versions >= 1.7.0, < 1.7.16. It is fixed in 1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7.

Summary

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.

More information to determine if you are impacted can be found on the electron blog.

Impact

CVE-2018-15685 has a CVSS score of 8.1 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7); upgrading removes the vulnerable code path.

Affected versions

electron (>= 1.7.0, < 1.7.16) electron (>= 1.8.0, < 1.8.8) electron (>= 2.0.0, < 2.0.8) electron (>= 3.0.0-beta.1, < 3.0.0-beta.7)

Security releases

electron → 1.7.16 (npm) electron → 1.8.8 (npm) electron → 2.0.8 (npm) electron → 3.0.0-beta.7 (npm)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

Upgrade Electron to >=3.0.0-beta.7, >=2.0.8, >=1.8.8, or >=1.7.16.

Frequently Asked Questions

  1. What is CVE-2018-15685? CVE-2018-15685 is a high-severity security vulnerability in electron (npm), affecting versions >= 1.7.0, < 1.7.16. It is fixed in 1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7.
  2. How severe is CVE-2018-15685? CVE-2018-15685 has a CVSS score of 8.1 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of electron are affected by CVE-2018-15685? electron (npm) versions >= 1.7.0, < 1.7.16 is affected.
  4. Is there a fix for CVE-2018-15685? Yes. CVE-2018-15685 is fixed in 1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7. Upgrade to this version or later.
  5. Is CVE-2018-15685 exploitable, and should I be worried? Whether CVE-2018-15685 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2018-15685 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2018-15685?
    • Upgrade electron to 1.7.16 or later
    • Upgrade electron to 1.8.8 or later
    • Upgrade electron to 2.0.8 or later
    • Upgrade electron to 3.0.0-beta.7 or later

Other vulnerabilities in electron

CVE-2026-54257CVE-2026-34781CVE-2026-34765CVE-2026-34764CVE-2026-34780

Stop the waste.
Protect your environment with Kodem.