Arbitrary file read via window-open IPC in Electron (electron electron)
At a glance
- Source
- NVD
- EPSS
- EPSS 1.18 % Β· percentile 68 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
Description
In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, arbitrary local file read is possible by defining unsafe window options on a child window opened via window.open. As a workaround, ensure you are calling `event.preventDefault()` on all new-window events where the `url` or `options` is not something you expect. This is fixed in versions 9.0.0-beta.21, 8.2.4 and 7.2.4.
Weaknesses (CWE)
- CWE-552 β Files or Directories Accessible to External Parties
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N | NVD Β· security-advisories@github.com (Secondary) |
| CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
| CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:P/I:N/A:N | NVD Β· nvd@nist.gov (Primary) |
Advisories
- GHSA-f9mq-jph6-9mhm β Arbitrary file read via window-open IPC in Electron
European references
- ENISA EUVD Β· EUVD-2020-0553
- GCVE Β· GCVE-0-2020-4075
Affected configurations (NVD CPE)
cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*β₯ 7.0.0 < 7.2.4cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*β₯ 8.0.0 < 8.2.4cpe:2.3:a:electronjs:electron:9.0.0:-:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta1:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta10:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta11:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta12:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta13:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta14:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta15:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta16:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta17:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta18:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta19:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta2:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta20:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta3:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta4:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta5:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta6:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta7:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta8:*:*:*:*:*:*cpe:2.3:a:electronjs:electron:9.0.0:beta9:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| electron Β· electron | affected >= 9.0.0-beta.0, <= 9.0.0-beta.20 ; affected >= 8.0.0, < 8.2.4 ; affected < 7.2.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |