CVE-2018-15685 in the critical feed json
Electron webPreferences vulnerability can be used to perform remote code execution
published 2018-08-23 8 y ago modified 2026-06-17 4 mo ago also GHSA-hv9c-qwqg-qj3v , EUVD-2018-0403
- cvss
- 8.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 10.3%
- EPSS 10.3% chance of exploitation in 30 days, percentile 95%
- public exploits
- 1
- Exploit-DB
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.
Patch / fix
- npm electron 1.7.16, 1.8.8, 2.0.8, 3.0.0-beta.7
Timeline
- Published
- First public exploit (EDB-45272)
Exploit prediction
10.30% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-45272 Electron WebPreferences - Remote Code Execution remote, 2018-08-27
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | electron | >=1.7.0, <1.7.16 >=1.8.0, <1.8.8 >=2.0.0, <2.0.8 >=3.0.0-beta.1, <3.0.0-beta.7 |
1.7.16 1.8.8 2.0.8 3.0.0-beta.7 |
Classification
- Weakness
-
- CWE-1188 Initialization of a Resource with an Insecure Default
References
-
github.com
/electron/electron/commit/519a02d8d4d28e8a467acb40fb26172a80c9454f
web
-
github.com
/electron/electron/commit/80221e52d93a96ea704cb6748ead669c55cff504
web
-
github.com
/electron/electron/commit/bab968ca776be28791e4dddfd50c86bd5fae62fa
web
-
github.com
/electron/electron/commit/ef0a6d9a1c96efc4657c6dd3a6624eba969f095b
web
-
exploit-db.com
/exploits/45272/
exploit, third-party-advisory, vdb-entry
-
electronjs.org
/blog/web-preferences-fix
web, mitigation, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-15685
advisory
-
github.com
/electron/electron
package
-
contrastsecurity.com
/security-influencers/cve-2018-15685
web
-
exploit-db.com
/exploits/45272
web
-
npmjs.com
/advisories/732
web
Sources
- CVE List CVE-2018-15685
- GitHub Advisory GHSA-hv9c-qwqg-qj3v
- NVD CVE-2018-15685
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.