medium

CVE-2026-70610

npm · electron

Summary

Electron: contextBridge object copy honors prototype setters

Severity
medium
CVSS
5.4
EPSS
0.6% (p47)
CWE
CWE-1321
Also known as
GHSA-ff2p-hmqr-hxm4
Published
2026-08-05
Updated
2026-08-05

Advisory details

Impact

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. Apps that only accept primitive arguments, or that validate object arguments, are not affected.

Workarounds

Validate objects received from untrusted content with own-property checks (Object.hasOwn), or copy them onto a null-prototype object before use.

Fixed Versions

For more information

If you have any questions or comments about this advisory, email Electron at security@electronjs.org

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.