{"id":"GHSA-f37v-82c4-4x64","revision":"f6c4d9395f074b22b7b4fe779902e6fe","records":[{"revision":"f6c4d9395f074b22b7b4fe779902e6fe","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-f37v-82c4-4x64","aliases":["CVE-2026-34781"],"title":"Electron: Crash in clipboard.readImage() on malformed clipboard image data","description":"### 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)","state":0,"publishedAt":"2026-04-07T15:52:28+00:00","modifiedAt":"2026-04-08T12:08:25.778807+00:00","affected":[{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"39.8.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"40.0.0-alpha.1"},{"kind":"fixed","version":"40.8.5"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"41.0.0-alpha.1"},{"kind":"fixed","version":"41.1.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"42.0.0-alpha.1"},{"kind":"fixed","version":"42.0.0-alpha.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-f37v-82c4-4x64","https://nvd.nist.gov/vuln/detail/CVE-2026-34781","https://github.com/electron/electron/pull/50475","https://github.com/electron/electron/commit/a48f03fb8d03933547281ddb2dbb6c6b9e705287","https://github.com/electron/electron","https://github.com/electron/electron/releases/tag/v39.8.5","https://github.com/electron/electron/releases/tag/v40.8.5","https://github.com/electron/electron/releases/tag/v41.1.0","https://github.com/electron/electron/releases/tag/v42.0.0-alpha.5"],"sourceUrl":"https://github.com/advisories/GHSA-f37v-82c4-4x64","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-f37v-82c4-4x64","identifiers":["GHSA-f37v-82c4-4x64","CVE-2026-34781"]},"retained":false,"historicalAffected":[]}],"coverage":[]}