Electron: Named window.open targets not scoped to the opener's browsing context
Impact
When a renderer calls window.open() with a target name, Electron did not correctly scope the named-window lookup to the opener's browsing context group. A renderer could navigate an existing child window that was opened by a different, unrelated renderer if both used the same target name. If that existing child was created with more permissive webPreferences (via setWindowOpenHandler's overrideBrowserWindowOptions), content loaded by the second renderer inherits those permissions.
Apps are only affected if they open multiple top-level windows with differing trust levels and use setWindowOpenHandler to grant child windows elevated webPreferences such as a privileged preload script. Apps that do not elevate child window privileges, or that use a single top-level window, are not affected.
Apps that additionally grant nodeIntegration: true or sandbox: false to child windows (contrary to the security recommendations) may be exposed to arbitrary code execution.
Workarounds
Deny window.open() in renderers that load untrusted content by returning { action: 'deny' } from setWindowOpenHandler. Avoid granting child windows more permissive webPreferences than their opener.
Fixed Versions
42.0.0-alpha.541.1.040.8.539.8.5
For more information
If you have any questions or comments about this advisory, email us at security@electronjs.org
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de npm | electron | < 39.8.5, >= 40.0.0-alpha.1, < 40.8.5, >= 41.0.0-alpha.1, < 41.1.0, >= 42.0.0-alpha.1, < 42.0.0-alpha.5 | 39.8.5, 40.8.5, 41.1.0, 42.0.0-alpha.5 |
Referencias
- https://github.com/electron/electron/security/advisories/GHSA-f3pv-wv63-48x8
- https://nvd.nist.gov/vuln/detail/CVE-2026-34765
- https://github.com/electron/electron
- https://github.com/electron/electron/releases/tag/v39.8.5
- https://github.com/electron/electron/releases/tag/v40.8.5
- https://github.com/electron/electron/releases/tag/v41.1.0
- https://github.com/electron/electron/releases/tag/v42.0.0-alpha.5
- Vector CVSS
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L- Debilidad (CWE)
CWE-668- Plataforma
- npm
- Paquete
electron- Publicada
- 07.04.2026
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-f3pv-wv63-48x8 - CC BY 4.0
Historial de vulnerabilidades: electron
Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 71
- Primera → última
- 10.2017 09.2026
- Sin corrección
- 0
- Explotada en ataques
- 3
Distribución por gravedad
- Crítica 3
- Alta 26
- Media 32
- Baja 10
Divulgaciones por año
- 2017: 1
- 2018: 5
- 2019: 0
- 2020: 6
- 2021: 2
- 2022: 7
- 2023: 6
- 2024: 0
- 2025: 3
- 2026: 41
-
Electron: Named window.open targets not scoped to the opener's browsing context esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.