# CVE-2022-29247: Exposure of Resource to Wrong Sphere in Electron

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.2
- **CVSS:** 2.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.20% (percentile 68, 2026-11-26)
- **CWE:** CWE-668
- **Aliases:** GHSA-mq8j-3h7h-p8g7
- **Published:** 2022-06-13T21:05:10.000Z
- **Modified:** 2026-06-17T04:39:54.807Z

## Who should check

- Projects that depend on npm package electron (\< 15.5.5)
- Anyone running electron \< 15.5.5; \>= 16.0.0-beta.1, \< 16.2.6; \>= 17.0.0-beta.1, \< 17.2.0; \>= 18.0.0-beta.1, \<= 18.0.0-beta.5

## Description

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\`.

## Affected and fixed versions

- npm `electron`: affected \< 15.5.5; fixed 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6 (osv)
- electron: \< 15.5.5; \>= 16.0.0-beta.1, \< 16.2.6; \>= 17.0.0-beta.1, \< 17.2.0; \>= 18.0.0-beta.1, \<= 18.0.0-beta.5 (cvelist)

## Mitigation

- Upgrade electron to one of 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-29247. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-29247.md
Affected: electron < 15.5.5
Fixed in: 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6

Steps:
1. Search this machine and project for electron (npm), electron: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-29247 being exploited?

There is no confirmed exploitation: CVE-2022-29247 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-29247?

Low: CVSS 2.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-29247?

electron \< 15.5.5.

### Is there a fix for CVE-2022-29247?

Yes. Fixed in 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6. Upgrade electron to one of 15.5.5, 16.2.6, 17.2.0, 18.0.0-beta.6 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-29247?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/electron/electron/security/advisories/GHSA-mq8j-3h7h-p8g7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-29247>
- other: <https://github.com/electron/electron>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-29247>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-mq8j-3h7h-p8g7> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-29247> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-29247>
