CVE-2020-15174
JSON

7.5high

Unpreventable top-level navigation in Electron

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
1.35% (higher than 72% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2q4g-w47c-4674

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.

Affected

Product or packageVersionsReported by
electron electron>= 8.0.0-beta.0, < 8.5.1, >= 9.0.0-beta.0, < 9.3.0, >= 10.0.0-beta.0, < 10.0.1CVE List
electron (npm)from 8.0.0-beta.0 before 8.5.1, from 9.0.0-beta.0 before 9.3.0, from 10.0.0-beta.0 before 10.0.1GitHub Advisory Database
electronjs electronfrom 8.0.0 before 8.5.1, from 9.0.0 before 9.3.0, from 10.0.0 before 10.0.1NVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:L
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database
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:

NVD (es)

En Electron anteriores a las versiones 11.0.0-beta.1, 10.0.1, 9.3.0 o 8.5.1, el evento "will-navigate" que usa las aplicaciones para evitar la navegación a destinos inesperados según nuestras recomendaciones de seguridad se puede omitir cuando una sub-frame realiza una navegación top-frame a través de los sitios.&#xa0;El problema está parcheado en las versiones 11.0.0-beta.1, 10.0.1, 9.3.0 o 8.5.1. Como una solución temporal, todos sus iframes utilizan el atributo sandbox.&#xa0;Esto impedirá que creen navegaciones top-frame y es una buena práctica de todos modos

References

Sources

SourceRecordLicence
CVE ListCVE-2020-15174 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-2q4g-w47c-4674 changed 2026-07-08CC-BY-4.0
NVDCVE-2020-15174 changed 2026-06-17Public domain