Skip to content

Unpreventable top-level navigation

High severity GitHub Reviewed Published Oct 5, 2020 in electron/electron • Updated Feb 1, 2023

Package

npm electron (npm)

Affected versions

>= 8.0.0-beta.0, < 8.5.1
>= 9.0.0-beta.0, < 9.3.0
>= 10.0.0-beta.0, < 10.0.1

Patched versions

8.5.1
9.3.0
10.0.1

Description

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.1
  • 10.0.1
  • 9.3.0
  • 8.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:

References

@MarshallOfSound MarshallOfSound published to electron/electron Oct 5, 2020
Reviewed Oct 6, 2020
Published to the GitHub Advisory Database Oct 6, 2020
Published by the National Vulnerability Database Oct 6, 2020
Last updated Feb 1, 2023

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
Low

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L

EPSS score

0.137%
(50th percentile)

CVE ID

CVE-2020-15174

GHSA ID

GHSA-2q4g-w47c-4674

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.