CVE-2020-15174: electron Improper Input Validation
Vulnerability summary
CVE-2020-15174 is a high (CVSS 7.5) Improper Input Validation vulnerability in electron. EPSS estimates a 1.35% chance of exploitation in the next 30 days, higher than 71% of scored vulnerabilities.
Timeline
- 06-10-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
In Electron before versions 11.0.0-beta.1, 10.0.1, 9.3.0 or 8.5.1 the `will-navigate` event that apps use to prevent navigations to unexpected destinations as per our security recommendations can be bypassed when a sub-frame performs a top-frame navigation across sites. The issue is patched in versions 11.0.0-beta.1, 10.0.1, 9.3.0 or 8.5.1 As a workaround sandbox all your iframes using the sandbox attribute. This will prevent them creating top-frame navigations and is good practice anyway.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
EPSS trend
Probability
1.35%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
0.00 pp
From 1.35% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-693Protection Mechanism FailureThe product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.
Affected systems
Electron1 product
- electron≥ 8.0.0-beta.0, < 8.5.1 | ≥ 9.0.0-beta.0, < 9.3.0 | ≥ 10.0.0-beta.0, < 10.0.1
Electronjs1 product
- electron≥ 8.0.0, < 8.5.1 | ≥ 9.0.0, < 9.3.0 | ≥ 10.0.0, < 10.0.1
Npm1 product
- electron≥ 8.0.0-beta.0, < 8.5.1 | ≥ 9.0.0-beta.0, < 9.3.0 | ≥ 10.0.0-beta.0, < 10.0.1
3 vendors · 3 products
References
4 links- github.com/electron/electron/security/advisories/GHSA-2q4g-w47c-4674X Refsource CONFIRMWEBThird Party Advisory
- github.com/electron/electron/commit/18613925610ba319da7f497b6deed85ad712c59bX Refsource MISCWEBPatchThird Party Advisory
- github.com/electron/electronPACKAGE