Electron: contextBridge object copy honors prototype setters (CVE-2026-70610)
A vulnerability in Electron's contextBridge allows objects copied from untrusted content to carry attacker-influenced prototypes, enabling prototype-pollution-style attacks against preload code despite context isolation. This affects apps that accept object arguments from untrusted content and read their properties without own-property checks. The issue is fixed in Electron versions 39.8.9 and later.
AI Analysis
Technical Summary
CVE-2026-70610 is a prototype pollution vulnerability in Electron's contextBridge feature. When objects are copied across the contextBridge boundary from untrusted content, they may retain attacker-controlled prototype setters. This can lead to prototype-pollution-style attacks against preload scripts even when context isolation is enabled. The vulnerability only affects applications whose preload code accepts object arguments from untrusted sources and accesses properties without verifying own properties. Electron has released fixes in versions 39.8.9, 40.9.2, 41.2.2, and 42.0.0-beta.4 to address this issue.
Potential Impact
An attacker can influence the prototype of objects passed from untrusted content to preload code, potentially causing unexpected behavior or security issues in preload scripts. This can occur despite context isolation being enabled. The impact is limited to applications that accept and use object arguments from untrusted content without proper validation. Applications that only accept primitive arguments or validate objects with own-property checks are not affected.
Mitigation Recommendations
A fix is available in Electron versions 39.8.9 and later. Users should upgrade to one of these fixed versions. As a workaround, preload code should validate objects received from untrusted content using own-property checks (e.g., Object.hasOwn) or copy objects onto null-prototype objects before use to prevent prototype pollution.
Electron: contextBridge object copy honors prototype setters (CVE-2026-70610)
Description
A vulnerability in Electron's contextBridge allows objects copied from untrusted content to carry attacker-influenced prototypes, enabling prototype-pollution-style attacks against preload code despite context isolation. This affects apps that accept object arguments from untrusted content and read their properties without own-property checks. The issue is fixed in Electron versions 39.8.9 and later.
CVSS v3.1
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-70610 is a prototype pollution vulnerability in Electron's contextBridge feature. When objects are copied across the contextBridge boundary from untrusted content, they may retain attacker-controlled prototype setters. This can lead to prototype-pollution-style attacks against preload scripts even when context isolation is enabled. The vulnerability only affects applications whose preload code accepts object arguments from untrusted sources and accesses properties without verifying own properties. Electron has released fixes in versions 39.8.9, 40.9.2, 41.2.2, and 42.0.0-beta.4 to address this issue.
Potential Impact
An attacker can influence the prototype of objects passed from untrusted content to preload code, potentially causing unexpected behavior or security issues in preload scripts. This can occur despite context isolation being enabled. The impact is limited to applications that accept and use object arguments from untrusted content without proper validation. Applications that only accept primitive arguments or validate objects with own-property checks are not affected.
Mitigation Recommendations
A fix is available in Electron versions 39.8.9 and later. Users should upgrade to one of these fixed versions. As a workaround, preload code should validate objects received from untrusted content using own-property checks (e.g., Object.hasOwn) or copy objects onto null-prototype objects before use to prevent prototype pollution.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-ff2p-hmqr-hxm4
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-70610"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a738518bf8831d5394eecdc
Added to database: 08/05/2026, 18:46:48 UTC
Last enriched: 08/05/2026, 23:45:46 UTC
Last updated: 08/05/2026, 23:45:46 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.