Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Electron: contextBridge object copy honors prototype setters (CVE-2026-70610)

0
Medium
Published: 08/05/2026 (08/05/2026, 17:41:20 UTC)
Source: GCVE Database
Product: electron

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

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

Affected software

npmghsa
electron
Affected versions
<39.8.9
npmghsa
electron
Affected versions
>=40.0.0-alpha.1 <40.9.2
npmghsa
electron
Affected versions
>=41.0.0-alpha.1 <41.2.2
npmghsa
electron
Affected versions
>=42.0.0-alpha.1 <42.0.0-beta.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/05/2026, 23:45:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses