{"id":"CVE-2022-29247","aliases":["CVE-2022-29247","GHSA-mq8j-3h7h-p8g7"],"related":[],"kind":"vulnerability","state":"published","title":"Exposure of Resource to Wrong Sphere in Electron","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis vulnerability 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`.\n\nPlease note the misleadingly named `nodeIntegrationInSubFrames` option does not implicitly grant Node.js access rather it depends on the existing `sandbox` setting.  If your application is sandboxed then `nodeIntegrationInSubFrames` just gives access to the sandboxed renderer APIs (which includes `ipcRenderer`).\n\nIf your 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.\n\n### Patches\nThis has been patched and the following Electron versions contain the fix:\n\n* `18.0.0-beta.6`\n* `17.2.0`\n* `16.2.6`\n* `15.5.5`\n\n### Workarounds\nEnsure that all IPC message handlers appropriately validate `senderFrame` as per our [security tutorial here](https://github.com/electron/electron/blob/main/docs/tutorial/security.md#17-validate-the-sender-of-all-ipc-messages).\n\n### For more information\n\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Electron es un marco de trabajo para escribir aplicaciones de escritorio multiplataforma utilizando JavaScript (JS), HTML y CSS. Una vulnerabilidad en las versiones anteriores a 18.0.0-beta.6, 17.2.0, 16.2.6 y 15.5.5 permite que un renderizador con ejecución de JS obtenga acceso a un nuevo proceso de renderización con \"nodeIntegrationInSubFrames\" habilitado, lo que a su vez permite el acceso efectivo a \"ipcRenderer\". La opción \"nodeIntegrationInSubFrames\" no concede implícitamente el acceso a Node.js. Más bien, depende de la configuración del sandbox existente. Si una aplicación está en sandbox, entonces \"nodeIntegrationInSubFrames\" sólo da acceso a las APIs del renderizador en sandbox, que incluyen \"ipcRenderer\". Si la aplicación expone adicionalmente mensajes IPC sin la comprobación de IPC \"senderFrame\" que llevan a cabo acciones privilegiadas o devuelven datos confidenciales este acceso a \"ipcRenderer\" puede a su vez comprometer su aplicación / usuario incluso con el sandbox habilitado. Electron versiones 18.0.0-beta.6, 17.2.0, 16.2.6 y 15.5.5 contienen una corrección para este problema. Como solución, asegúrese de que todos los manejadores de mensajes IPC comprueban apropiadamente \"senderFrame\"","source":"nvd"}],"published":"2022-06-13T21:05:10.000Z","modified":"2026-06-17T04:39:54.807Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.2,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.2,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N","score":2.2,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-668"],"affected":[{"ranges":[{"version":"< 15.5.5","status":"affected"},{"version":">= 16.0.0-beta.1, < 16.2.6","status":"affected"},{"version":">= 17.0.0-beta.1, < 17.2.0","status":"affected"},{"version":">= 18.0.0-beta.1, <= 18.0.0-beta.5","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"15.5.5"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"16.0.0","status":"affected","fixed":"16.2.6"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"17.0.0","status":"affected","fixed":"17.2.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"18.0.0-beta.1","status":"affected","fixed":"18.0.0-beta.6"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"15.5.5"},{"status":"affected","introduced":"16.0.1","fixed":"16.2.6"},{"status":"affected","introduced":"17.0.1","fixed":"17.2.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"16.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"17.0.0"},{"status":"affected","version":"18.0.0"},{"status":"affected","version":"18.0.0"},{"status":"affected","version":"18.0.0"},{"status":"affected","version":"18.0.0"},{"status":"affected","version":"18.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-mq8j-3h7h-p8g7","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29247","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:05:29.437Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-29247","url":"https://www.cve.org/CVERecord?id=CVE-2022-29247","licence":"CVE Terms of Use","modified":"2025-04-23T18:16:29.296Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mq8j-3h7h-p8g7","url":"https://github.com/advisories/GHSA-mq8j-3h7h-p8g7","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:12.104Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-29247","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-29247","licence":"Public domain","modified":"2026-06-17T04:39:54.807Z"}],"updatedAt":"2026-11-25T22:58:12.262Z","epss":{"score":0.01161,"percentile":0.68094,"date":"2026-12-01T12:00:22.000Z"}}