{"id":"CVE-2026-34781","aliases":["CVE-2026-34781","GHSA-f37v-82c4-4x64"],"related":[],"kind":"vulnerability","state":"published","title":"Electron crashes in clipboard.readImage() on malformed clipboard image data","summary":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5, apps that call clipboard.readImage() may be vulnerable to a denial of service. If the system clipboard contains image data that fails to decode, the resulting null bitmap is passed unchecked to image construction, triggering a controlled abort and crashing the process. Apps are only affected if they call clipboard.readImage(). Apps that do not read images from the clipboard are not affected. This issue does not allow memory corruption or code execution. This vulnerability is fixed in 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5, apps that call clipboard.readImage() may be vulnerable to a denial of service. If the system clipboard contains image data that fails to decode, the resulting null bitmap is passed unchecked to image construction, triggering a controlled abort and crashing the process. Apps are only affected if they call clipboard.readImage(). Apps that do not read images from the clipboard are not affected. This issue does not allow memory corruption or code execution. This vulnerability is fixed in 39.8.5, 40.8.5, 41.1.0, and 42.0.0-alpha.5.","source":"cvelist"},{"lang":"en","text":"### Impact\nApps that call `clipboard.readImage()` may be vulnerable to a denial of service. If the system clipboard contains image data that fails to decode, the resulting null bitmap is passed unchecked to image construction, triggering a controlled abort and crashing the process.\n\nApps are only affected if they call `clipboard.readImage()`. Apps that do not read images from the clipboard are not affected. This issue does not allow memory corruption or code execution.\n\n### Workarounds\nValidate that the clipboard contains image data via `clipboard.availableFormats()` before calling `clipboard.readImage()`. Note this only narrows the window — upgrading to a fixed version is recommended.\n\n### Fixed Versions\n* `42.0.0-alpha.5`\n* `41.1.0`\n* `40.8.5`\n* `39.8.5`\n\n### For more information\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 framework para escribir aplicaciones de escritorio multiplataforma usando JavaScript, HTML y CSS. Antes de 39.8.5, 40.8.5, 41.1.0 y 42.0.0-alpha.5, las aplicaciones que llaman a clipboard.readImage() pueden ser vulnerables a una denegación de servicio. Si el portapapeles del sistema contiene datos de imagen que no se decodifican, el mapa de bits nulo resultante se pasa sin verificar a la construcción de la imagen, lo que desencadena un aborto controlado y bloquea el proceso. Las aplicaciones solo se ven afectadas si llaman a clipboard.readImage(). Las aplicaciones que no leen imágenes del portapapeles no se ven afectadas. Este problema no permite la corrupción de memoria ni la ejecución de código. Esta vulnerabilidad está corregida en 39.8.5, 40.8.5, 41.1.0 y 42.0.0-alpha.5.","source":"nvd"}],"published":"2026-04-07T15:52:28.000Z","modified":"2026-07-24T22:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.8,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"< 39.8.5","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.8.5","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.1.0","status":"affected"},{"version":">= 42.0.0-alpha.1, < 42.0.0-alpha.5","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"39.8.5"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.8.5"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.1.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"42.0.0-alpha.1","status":"affected","fixed":"42.0.0-alpha.5"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"39.8.4"},{"status":"affected","introduced":"40.0.0","lastAffected":"40.8.4"},{"status":"affected","introduced":"41.0.0","fixed":"41.1.0"},{"status":"affected","version":"41.2.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-f37v-82c4-4x64","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34781","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/pull/50475","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/commit/a48f03fb8d03933547281ddb2dbb6c6b9e705287","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/releases/tag/v39.8.5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/releases/tag/v40.8.5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/releases/tag/v41.1.0","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron/releases/tag/v42.0.0-alpha.5","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-08T16:10:12.958Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-34781","url":"https://www.cve.org/CVERecord?id=CVE-2026-34781","licence":"CVE Terms of Use","modified":"2026-04-08T16:14:38.564Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f37v-82c4-4x64","url":"https://github.com/advisories/GHSA-f37v-82c4-4x64","licence":"CC-BY-4.0","modified":"2026-04-08T12:08:25.778Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-34781","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-34781","licence":"Public domain","modified":"2026-07-24T22:10:00.140Z"}],"updatedAt":"2026-11-25T22:59:18.184Z","epss":{"score":0.00153,"percentile":0.04662,"date":"2026-12-01T12:00:22.000Z"}}