electron
45.3.4 · 17 Nov 2026MIT12.9M / weekRepositoryHomepagenpmAtom feed
40.10.6 is the newest release of 40.x.
In short
1 breaking1 deprecated14 new49 fixed7 changed1 internal
Security
47 advisories affect 40.0.0; 42.11.16 fixes them
- HighElectron: Mitigation for compromised eMudhra intermediate certificatesGHSA-jr5w-w6x2-84p9 · 23 Oct 2026Fixed in 42.11.16
- HighElectron drops inherited HTML sandbox restrictions for popups opened through OpenURLFromTabGHSA-hq2x-r82h-9wj4 · 29 Sep 2026Fixed in 41.10.4
- HighElectron: Windows opened from a sandboxed top-level document do not inherit its sandbox restrictionsGHSA-gr2m-v5gq-v685 · 29 Sep 2026Fixed in 41.10.6
- HighElectron: File and HTTP protocol handlers allow cross-origin reads without corsEnabledGHSA-j84w-jfhq-vhvj · 29 Sep 2026Fixed in 41.10.6
- HighElectron: <webview> can enable Node.js integration in Web Workers despite embedder restrictionsGHSA-9qh4-3jw8-366w · 29 Sep 2026Fixed in 41.10.6
42 more
- HighElectron: Sandboxed iframe can bypass the allow-popups restriction via the OpenURL navigation pathGHSA-9f4c-93c8-jc8g · 5 Aug 2026Fixed in 41.10.3
- HighElectron: Custom protocol with supportFetchAPI but not corsEnabled allows cross-origin readsGHSA-v3j7-r9gq-3gjw · 5 Aug 2026Fixed in 40.9.3
- HighElectron: Context isolation bypass via Function.prototype.bind hijackGHSA-h7rp-cf8h-j98x · 5 Aug 2026Fixed in 40.9.2
- HighElectron: Context Isolation bypass via contextBridge VideoFrame transferGHSA-jfqg-hf23-qpw2 · 3 Apr 2026Fixed in 40.7.0
- HighElectron: Use-after-free in offscreen child window paint callbackGHSA-532v-xpq5-8h95 · 3 Apr 2026Fixed in 40.7.0
- HighElectron: Use-after-free in WebContents fullscreen, pointer-lock, and keyboard-lock permission callbacksGHSA-8337-3p73-46f4 · 3 Apr 2026Fixed in 40.7.0
- HighElectron: Use-after-free in PowerMonitor on Windows and macOSGHSA-jjp3-mq3x-295m · 3 Apr 2026Fixed in 40.8.0
- HighElectron: Renderer command-line switch injection via undocumented commandLineSwitches webPreferenceGHSA-9wfr-w7mm-pc7f · 3 Apr 2026Fixed in 40.7.0
- ModerateElectron: SameSite cookie restrictions are not applied to windows opened from linksGHSA-2p8c-gr87-2676 · 22 Oct 2026Fixed in 42.11.3
- ModerateElectron: Pointer lock permission requests can be attributed to the wrong frameGHSA-x562-297c-g43g · 22 Oct 2026Fixed in 42.11.9
- ModerateElectron: openExternal permission requests can be attributed to the wrong originGHSA-997q-gvvc-jwmx · 22 Oct 2026Fixed in 42.11.3
- ModerateElectron: HID and USB permission checks can be attributed to the wrong originGHSA-fw47-9c62-h3vw · 21 Oct 2026Fixed in 42.11.3
- ModerateElectron: Local race condition in Squirrel.Mac update installation on macOSGHSA-vv43-5jgx-7qv8 · 29 Sep 2026Fixed in 41.10.5
- ModerateElectron: Sandboxed iframes can launch external protocol handlersGHSA-p2rr-rvmm-c5fp · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: DevTools embedder handler executes arbitrary files via shell openGHSA-f2r8-jv7c-xqmp · 5 Aug 2026Fixed in 40.9.2
- ModerateElectron: contextBridge object copy honors prototype settersGHSA-ff2p-hmqr-hxm4 · 5 Aug 2026Fixed in 40.9.2
- ModerateElectron: DevTools JavaScript Injection via Unsanitized Dock State ParameterGHSA-4f78-qhmw-8j8m · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: window.open features string controls some window options considered privilegedGHSA-v93f-fgjr-hjrj · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: ProtocolResponse.url reuses the default session cache instead of the registering sessionGHSA-r4w5-6pfg-jxp5 · 5 Aug 2026Fixed in 40.10.6
- ModerateElectron: HTTP redirect followed into local file loaderGHSA-v64r-4m7r-3mvq · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: Extension tab APIs operate across session boundariesGHSA-m55f-7gqj-fr98 · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: shell.openPath path validation bypass via embedded null byteGHSA-5c9j-mhmv-5xgx · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: Permission Check Handler Receives Main Frame Origin Instead of Requesting Iframe OriginGHSA-9pf5-hg6p-4pwp · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: Parent process code-sign check is spoofableGHSA-jm7p-cc5g-qwxx · 5 Aug 2026Fixed in 40.9.1
- ModerateElectron: Named window.open targets not scoped to the opener's browsing contextGHSA-f3pv-wv63-48x8 · 7 Apr 2026Fixed in 40.8.5
- ModerateElectron: AppleScript injection in app.moveToApplicationsFolder on macOSGHSA-5rqw-r77c-jp79 · 3 Apr 2026Fixed in 40.8.0
- ModerateElectron: Service worker can spoof executeJavaScript IPC repliesGHSA-xj5x-m3f3-5x3h · 3 Apr 2026Fixed in 40.8.1
- ModerateElectron: Incorrect origin passed to permission request handler for iframe requestsGHSA-r5p7-gp4j-qhrx · 3 Apr 2026Fixed in 40.8.1
- ModerateElectron: Out-of-bounds read in second-instance IPC on macOS and LinuxGHSA-3c8v-cfp5-9885 · 3 Apr 2026Fixed in 40.8.1
- ModerateElectron: nodeIntegrationInWorker not correctly scoped in shared renderer processesGHSA-xwr5-m59h-vwqr · 3 Apr 2026Fixed in 40.8.4
- ModerateElectron: Registry key path injection in app.setAsDefaultProtocolClient on WindowsGHSA-mwmh-mq4g-g6gr · 3 Apr 2026Fixed in 40.8.1
- ModerateElectron: Use-after-free in download save dialog callbackGHSA-9w97-2464-8783 · 3 Apr 2026Fixed in 40.7.0
- ModerateElectron: HTTP Response Header Injection in custom protocol handlers and webRequestGHSA-4p4r-m79c-wq3v · 3 Apr 2026Fixed in 40.8.3
- LowElectron: Extension tabs.query returns tab URLs and titles without the tabs permissionGHSA-98mx-cjp9-gchm · 22 Oct 2026Fixed in 42.11.1
- LowElectron: Frame subscription trusts GPU-supplied frame geometryGHSA-3qxv-5xgr-q7w9 · 22 Oct 2026Fixed in 42.11.6
- LowElectron: Off-screen rendering on macOS trusts GPU-supplied frame geometryGHSA-h3v5-h239-pg29 · 22 Oct 2026Fixed in 42.11.6
- LowElectron: Cross-origin iframe can position native autofill popupGHSA-x8rc-wpg4-grpf · 5 Aug 2026Fixed in 40.9.1
- LowElectron: Off-screen rendering trusts GPU-supplied geometry over shared-memory sizeGHSA-pfmc-3mgc-p6fp · 5 Aug 2026Fixed in 40.9.1
- LowElectron: Crash in clipboard.readImage() on malformed clipboard image dataGHSA-f37v-82c4-4x64 · 7 Apr 2026Fixed in 40.8.5
- LowElectron: Use-after-free in offscreen shared texture release() callbackGHSA-8x5q-pvf5-64mp · 3 Apr 2026Fixed in 40.8.5
- LowElectron: Unquoted executable path in app.setLoginItemSettings on WindowsGHSA-jfqx-fxh3-c62j · 3 Apr 2026Fixed in 40.8.0
- LowElectron: USB device selection not validated against filtered device listGHSA-9899-m83m-qhpj · 3 Apr 2026Fixed in 40.7.0
Release note
Release Notes for v40.0.0
Stack Upgrades
Chromium
144.0.7559.60Node
v24.11.1V8
14.4
Breaking Changes
- Deprecated
Deprecated clipboard API access from renderer processes #48923
- Breaking
Fixed an error on debug symbol upload by moving dsym.zip to use tar.xz compression. #48952
Features
Additions
Added "memory-eviction" as a possible reason for a child process to exit. #48362
Added
RGBAF16output format with scRGB HDR color space support to Offscreen Rendering. #48265 (Also in 39)Added
app.isHardwareAccelerationEnabled(). #47614 (Also in 37, 38, 39)Added bypassCustomProtocolHandlers option to net.request. #48883 (Also in 38, 39)
Added methods to enable more granular accessibility support management. #48042 (Also in 37, 38, 39)
Added support for WebSocket authentication through the
loginevent onwebContents. #49064 (Also in 39)Added support to import external shared texture as VideoFrame. #48831
Added the ability to retrieve the system accent color on Linux using
systemPreferences.getAccentColor. #48027 (Also in 39)Allowed for persisting File System API grant status within a given session. #48170 (Also in 37, 38, 39)
Automatically focus DevTools when element is inspected or breakpoint is triggered. #46386 (Also in 37, 38, 39)
Improvements
Enables resetting accent color to follow system accent settings if a previous color has been set via
window.setAccentColor(null). #48274 (Also in 38, 39)Support dynamic ESM imports in non-context isolated preloads. #48375 (Also in 37, 38, 39)
Updated
nativeImage.createFromNamedImageto support SF Symbol names. #48772 (Also in 39)
Fixes
Added support for
--no-stdio-initto be used when nul device is disabled on windows. #47870Fixed an issue on Windows and Linux where no cookie encryption key provider was passed into the network service when cookie encryption was enabled. #49375
Fixed an issue where no cookie encryption provider was passed into the network service when cookie encryption was enabled. #49350
Fixed crash when attempting to resolve modules during process exit. #49104
Fixed drag regions in child windows. #49312
Fixed draw smoothing round corner issue. #48782
Fixed the cookie encryption logic to use the old os_crypt sync implementation present in M142. #49384
Fixed visual artifacts while resizing a window on Windows. #49191
Also in earlier versions...
AccentColor set distinguishes the frame. #48405 (Also in 37, 38, 39)
Corrected the appearance of tiled windows on GNOME (when frame: true), and removed resize handles from tiled edges. #48835 (Also in 38, 39)
ESM-from-CJS import when CJK characters are in path. #48862 (Also in 39)
Runtime JS error that crashes
GetPackageJSON. #48293 (Also in 37, 38, 39)Fixed Wayland configuration through the
XDG_SESSION_TYPEenvironment variable. #48301 (Also in 38, 39)Fixed Windows
dialog.showMessageBoxdefault button handling. #48216 (Also in 36, 37, 38, 39)Fixed a Windows notification issue where clicking a native notification would result in an application hang on certain Windows environments. #49129 (Also in 39)
Fixed a potential crash in
dialog.showOpenDialogon Windows with an empty extension filter array. #48640 (Also in 37, 38, 39)Fixed an application crash when clicking or hovering over the native MacOS "Window" menu. Reverts #48598. #48799 (Also in 37, 38, 39)
Fixed an error when checking environmental variables when using remote checksums when installing Electron via npm. #48634 (Also in 37, 38, 39)
Fixed an issue that menu items on macOS could not be disabled under all circumstances. #48598 (Also in 37, 38, 39)
Fixed an issue where
menu-did-closewas not emitted properly for some application menus. #49092 (Also in 38, 39)Fixed an issue where
shell.openExternalcaused an unexpected dialog to open when there was no app suitable to open the url. #48502 (Also in 38, 39)Fixed an issue where
systemPreferences.getAccentColorinverted the color. #48511 (Also in 37, 38, 39)Fixed an issue where
trafficLightPositionwould not be correctly applied when usingtitleBarStyle: 'customButtonsOnHover'on macOS 26. #48538 (Also in 37, 38, 39)Fixed an issue where authentication via websockets can crash. #48510 (Also in 37, 38, 39)
Fixed an issue where button background on mouse hover with
titleBarOverlaywasn't always calculated to provide appropriate minimum contrast. #48568 (Also in 37, 38, 39)Fixed an issue where calling
webContents.openDevTools({ mode: 'detach' })would cause a crash on Wayland. #48600 (Also in 38, 39)Fixed an issue where changing the resizable property on a window would break the styles of a transparent window. #48378 (Also in 37, 38, 39)
Fixed an issue where icons didn't show up as expected on Windows Toast notifications. #48543 (Also in 38, 39)
Fixed an issue where snapped windows aren't correctly snapped when minimized and then unminimized. #48296 (Also in 37, 38, 39)
Fixed an issue where some apps would throw an exception on launch. #48976 (Also in 39)
Fixed an issue where the close callback param for
menu.popupwould fire when any arbitrary submenu of the given menu closed, and not the menu itself. #49046 (Also in 38, 39)Fixed crash on windows when UTF-8 is in path. #48942 (Also in 38, 39)
Fixed crash when accessing
webContents.sessionorwebContents.debugger. #48318 (Also in 39)Fixed crash when creating event object for ipc events. #48991 (Also in 39)
Fixed crash when inspector agent attempts to evaluate on provisional frames. #48503 (Also in 37, 38, 39)
Fixed crash when passing feature param from commandline
--enable-features=Feature:ParamA/Value. #48411 (Also in 39)Fixed crash when reading system certificates via nodejs tls module. #49041 (Also in 39)
Fixed download button does not work in PDF Viewer. #48372 (Also in 38, 39)
Fixed excessive WindowServer GPU usage on macOS Tahoe 26. #48376 (Also in 36, 37, 38, 39)
Fixed high CPU usage with
<input>tag on macOS 26. #48379 (Also in 36, 37, 38, 39)Fixed incorrect signal variable reference in nan-spec-runner that could cause install failures to go undetected. #48639 (Also in 38, 39)
Fixed oom crash when optimizing certain wasm functions involving large phi nodes. #48816 (Also in 38, 39)
Fixed shader-f16 to work on Windows. #48342 (Also in 37, 38, 39)
Fixed the issue where the parent window leave disabled after the modal window call show() multiple time. #49021 (Also in 38, 39)
Fixed the issue where the parent window remained interactive after the modal window was opened. #48864 (Also in 38, 39)
Fixed white flash on call to BrowserWindow.show. #47151 (Also in 37, 38, 39)
Reenable V8 trap handlers for wasm in browser and utility process, improves runtime execution of wasm. #48839 (Also in 39)
Requests sent via
netare now capable of having their headers modified to use reserved headers viawebRequest. #49241 (Also in 39)Titlebar buttons now appear on the correct side of windows on Wayland in Ubuntu. #48490 (Also in 38, 39)
Windows: Calling window.setFocusable(true) will no longer cause a window to lose focus. #48927 (Also in 39)
Other Changes
Backported fix for 445380761. #48335 (Also in 36, 37, 38, 39)
Backported fix for 466786677. #49286
Backported fix for chromium:466192044. #49201
Fixed a development issue where the metal toolchain could not be found when building on macOS 26. #48467 (Also in 37, 38, 39)
Fixed devtools element panel flickering when with node inspection. #49043 (Also in 39)
Notices
End of Support for 37.x.y
Electron 37.x.y has reached end-of-support as per the project's support policy. Developers and applications are encouraged to upgrade to a newer version of Electron.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.