Packages / electron / Security
Unpreventable top-level navigation
Affected releases · electron
- 10.x10.0.0Fixed in 10.0.1
- 9.x9.0.0 – 9.2.1Fixed in 9.3.0
- 8.x8.0.0 – 8.5.0Fixed in 8.5.1
On 10.x, the newest line:
npm install electron@10.0.1Not affected
45.0.0
1 release, latest
Affected
10.0.0
1 release
Fixed
10.0.1 – 10.4.7
21 releases
Affected
9.0.0 – 9.2.1
11 releases
Fixed
9.3.0 – 9.4.4
11 releases
Affected
8.0.0 – 8.5.0
20 releases
Fixed
8.5.1 – 8.5.5
5 releases
Is your project affected?
Paste your package.json, or type the range you declare for electron. It is read in your browser and sent nowhere.
What happens
Impact
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.
Patches
11.0.0-beta.110.0.19.3.08.5.1
Workarounds
Sandbox all your iframes using the sandbox attribute. This will prevent them creating top-frame navigations and is good practice anyway.
For more information
If you have any questions or comments about this advisory:
Email us at security@electronjs.org