cve.bz

CVE-2022-29247 electronjs electron: Exposure of Resource to Wrong Sphere

9.8 criticalEPSS 1.1%Fix available

Critical (9.8) in electronjs electron. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in electron 15.5.5, 16.2.6, 17.2.0.

On this page
Electron is a framework for writing cross-platform desktop applications using JavaScript (JS), HTML, and CSS. A vulnerability in versions prior to 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 allows a renderer with JS execution to obtain access to a new renderer process with `nodeIntegrationInSubFrames` enabled which in turn allows effective access to `ipcRenderer`. The `nodeIntegrationInSubFrames` option does not implicitly grant Node.js access. Rather, it depends on the existing sandbox setting. If an application is sandboxed, then `nodeIntegrationInSubFrames` just gives access to the sandboxed renderer APIs, which include `ipcRenderer`. If the application then additionally exposes IPC messages without IPC `senderFrame` validation that perform privileged actions or return confidential data this access to `ipcRenderer` can in turn compromise your application / user even with the sandbox enabled. Electron versions 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 contain a fix for this issue. As a workaround, ensure that all IPC message handlers appropriately validate `senderFrame`.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-668 Exposure of Resource to Wrong Sphere
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • electron (npm): fixed in 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6

Ask an AI about this CVE

Show the promptExplain CVE-2022-29247 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29247?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29247?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-29247 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
electronjs:electronbefore 15.5.5
electronjs:electronfrom 16.0.1 before 16.2.6
electronjs:electronfrom 17.0.1 before 17.2.0
electronjs:electron16.0.0:beta1
electronjs:electron16.0.0:beta2
electronjs:electron16.0.0:beta3
electronjs:electron16.0.0:beta4
electronjs:electron16.0.0:beta5
electronjs:electron16.0.0:beta6
electronjs:electron16.0.0:beta7
electronjs:electron16.0.0:beta8
electronjs:electron16.0.0:beta9
electronjs:electron17.0.0:beta1
electronjs:electron17.0.0:beta2
electronjs:electron17.0.0:beta3
electronjs:electron17.0.0:beta4
electronjs:electron17.0.0:beta5
electronjs:electron17.0.0:beta6
electronjs:electron17.0.0:beta7
electronjs:electron17.0.0:beta8
electronjs:electron17.0.0:beta9
electronjs:electron18.0.0:beta1
electronjs:electron18.0.0:beta2
electronjs:electron18.0.0:beta3
electronjs:electron18.0.0:beta4
electronjs:electron18.0.0:beta5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mq8j-3h7h-p8g7npmelectron<15.5.515.5.5
GHSA-mq8j-3h7h-p8g7npmelectron>=16.0.0 <16.2.616.2.6
GHSA-mq8j-3h7h-p8g7npmelectron>=17.0.0 <17.2.017.2.0
GHSA-mq8j-3h7h-p8g7npmelectron>=18.0.0-beta.1 <18.0.0-beta.618.0.0-beta.6

References

Check your stackJSON