CVE-2026-70610
Electron: contextBridge object copy honors prototype setters
Overview
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.9, 40.9.2, 41.2.2, and 42.0.0-beta.4, objects copied across the contextBridge boundary from untrusted content could carry an attacker-influenced prototype, enabling prototype-pollution-style attacks against preload code despite context isolation being enabled. Apps are only affected if their preload code accepts object arguments from untrusted content and reads properties from them without own-property checks, while apps that only accept primitive arguments or validate object arguments are not affected. This issue is fixed in 39.8.9, 40.9.2, 41.2.2, and 42.0.0-beta.4.
Source: OX vulnerability database
Severity
5.4 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N
Weakness: CWE-1321
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | electron | <39.8.9>=40.0.0-alpha.1, <40.9.2>=41.0.0-alpha.1, <41.2.2>=42.0.0-alpha.1, <42.0.0-beta.4 | 39.8.940.9.241.2.242.0.0-beta.4 |
Open a package to see all its vulnerabilities.
Operating systems
No Linux distribution reports this ID.
References
- github.com https://github.com/electron/electron
- github.com https://github.com/electron/electron/commit/17d5d26499cd279fab48f5f26527f8edc02a7713
- github.com https://github.com/electron/electron/commit/23a6efb714dec80e2cf45d3054d18d701162e4dd
- github.com https://github.com/electron/electron/commit/4ac50292d552fb510eb778392620c85308770a55
- github.com https://github.com/electron/electron/commit/5b699544cbbed51bedb7c60d75c8c42be5825737
- github.com https://github.com/electron/electron/pull/51083
- github.com https://github.com/electron/electron/pull/51084
- github.com https://github.com/electron/electron/pull/51085
- github.com https://github.com/electron/electron/pull/51086
- github.com https://github.com/electron/electron/releases/tag/v39.8.9
Show all 14 references
- github.com https://github.com/electron/electron/releases/tag/v40.9.2
- github.com https://github.com/electron/electron/releases/tag/v41.2.2
- github.com https://github.com/electron/electron/releases/tag/v42.0.0-beta.4
- github.com https://github.com/electron/electron/security/advisories/GHSA-ff2p-hmqr-hxm4
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.