Context isolation bypass via nested unserializable return value in Electron
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps using `contextIsolation` and `contextBridge` are affected. This is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. This issue is only exploitable if an API exposed to the main world via `contextBridge` can return an object or array that contains a javascript object which cannot be serialized, for instance, a canvas rendering context. This would normally result in an exception being thrown `Error: object could not be cloned`. The app side workaround is to ensure that such a case is not possible. Ensure all values returned from a function exposed over the context bridge are supported. This issue has been fixed in versions `25.0.0-alpha.2`, `24.0.1`, `23.2.3`, and `22.3.6`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| electron | electron | before 22.3.6; 23.0.0 to before 23.2.3; 24.0.0 to before 24.0.1; 25.0.0-alpha.1 to before 25.0.0-alpha.2 | 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 | Patch available | CNA |
| — | electron (npm) | before 22.3.6 | 22.3.6 | Patch available | GHSA-p7v2-p9m8-qqg7 |
| — | electron (npm) | 23.0.0-alpha.1 to before 23.2.3 | 23.2.3 | Patch available | GHSA-p7v2-p9m8-qqg7 |
| — | electron (npm) | 24.0.0-alpha.1 to before 24.0.1 | 24.0.1 | Patch available | GHSA-p7v2-p9m8-qqg7 |
| — | electron (npm) | 25.0.0-alpha.1 to before 25.0.0-alpha.2 | 25.0.0-alpha.2 | Patch available | GHSA-p7v2-p9m8-qqg7 |
- electron Vendorelectron Affected before 22.3.6; 23.0.0 to before 23.2.3; 24.0.0 to before 24.0.1; 25.0.0-alpha.1 to before 25.0.0-alpha.2 Fixed in 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2 Patch available CNA
- electron (npm) Vendor— Affected before 22.3.6 Fixed in 22.3.6 Patch available GHSA-p7v2-p9m8-qqg7
- electron (npm) Vendor— Affected 23.0.0-alpha.1 to before 23.2.3 Fixed in 23.2.3 Patch available GHSA-p7v2-p9m8-qqg7
- electron (npm) Vendor— Affected 24.0.0-alpha.1 to before 24.0.1 Fixed in 24.0.1 Patch available GHSA-p7v2-p9m8-qqg7
- electron (npm) Vendor— Affected 25.0.0-alpha.1 to before 25.0.0-alpha.2 Fixed in 25.0.0-alpha.2 Patch available GHSA-p7v2-p9m8-qqg7
CPE configurations NVD · 17
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* | before 22.3.6; 23.0.0 to before 23.2.3 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:-:*:*:*:node.js:*:* | 24.0.0 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha1:*:*:*:node.js:*:* | 24.0.0 alpha1 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha2:*:*:*:node.js:*:* | 24.0.0 alpha2 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha3:*:*:*:node.js:*:* | 24.0.0 alpha3 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha4:*:*:*:node.js:*:* | 24.0.0 alpha4 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha5:*:*:*:node.js:*:* | 24.0.0 alpha5 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha6:*:*:*:node.js:*:* | 24.0.0 alpha6 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:alpha7:*:*:*:node.js:*:* | 24.0.0 alpha7 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta1:*:*:*:node.js:*:* | 24.0.0 beta1 | Vulnerable | Electronjs |
- cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions before 22.3.6; 23.0.0 to before 23.2.3 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:-:*:*:*:node.js:*:* Versions 24.0.0 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha1:*:*:*:node.js:*:* Versions 24.0.0 alpha1 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha2:*:*:*:node.js:*:* Versions 24.0.0 alpha2 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha3:*:*:*:node.js:*:* Versions 24.0.0 alpha3 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha4:*:*:*:node.js:*:* Versions 24.0.0 alpha4 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha5:*:*:*:node.js:*:* Versions 24.0.0 alpha5 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha6:*:*:*:node.js:*:* Versions 24.0.0 alpha6 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:alpha7:*:*:*:node.js:*:* Versions 24.0.0 alpha7 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta1:*:*:*:node.js:*:* Versions 24.0.0 beta1 Vulnerable ·Electronjs
Show 7 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:electronjs:electron:24.0.0:beta2:*:*:*:node.js:*:* | 24.0.0 beta2 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta3:*:*:*:node.js:*:* | 24.0.0 beta3 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta4:*:*:*:node.js:*:* | 24.0.0 beta4 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta5:*:*:*:node.js:*:* | 24.0.0 beta5 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta6:*:*:*:node.js:*:* | 24.0.0 beta6 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:24.0.0:beta7:*:*:*:node.js:*:* | 24.0.0 beta7 | Vulnerable | Electronjs |
| cpe:2.3:a:electronjs:electron:25.0.0:alpha1:*:*:*:node.js:*:* | 25.0.0 alpha1 | Vulnerable | Electronjs |
- cpe:2.3:a:electronjs:electron:24.0.0:beta2:*:*:*:node.js:*:* Versions 24.0.0 beta2 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta3:*:*:*:node.js:*:* Versions 24.0.0 beta3 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta4:*:*:*:node.js:*:* Versions 24.0.0 beta4 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta5:*:*:*:node.js:*:* Versions 24.0.0 beta5 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta6:*:*:*:node.js:*:* Versions 24.0.0 beta6 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:24.0.0:beta7:*:*:*:node.js:*:* Versions 24.0.0 beta7 Vulnerable ·Electronjs
- cpe:2.3:a:electronjs:electron:25.0.0:alpha1:*:*:*:node.js:*:* Versions 25.0.0 alpha1 Vulnerable ·Electronjs
Remediation
- Fix · CNA electron (electron) Fixed in 22.3.6, 23.2.3, 24.0.1, 25.0.0-alpha.2
- Fix · GHSA-p7v2-p9m8-qqg7 electron (npm) Fixed in 22.3.6 Advisory →
- Fix · GHSA-p7v2-p9m8-qqg7 electron (npm) Fixed in 23.2.3 Advisory →
- Fix · GHSA-p7v2-p9m8-qqg7 electron (npm) Fixed in 24.0.1 Advisory →
- Fix · GHSA-p7v2-p9m8-qqg7 electron (npm) Fixed in 25.0.0-alpha.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-29198
- 2026-10-03 Alias added: GHSA-p7v2-p9m8-qqg7
References
More electron vulnerabilities
- TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
- TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
- TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
- TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
- TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
- TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
Sources
- CVE-2023-29198 · CVE Program
- CVE-2023-29198 · NVD
- FIRST EPSS
- GHSA-p7v2-p9m8-qqg7 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences