Vulnerability · Published Apr 7, 2026 · Assigned by GitHub_M
CVE-2026-34781Electron crashes in clipboard.readImage() on malformed clipboard image data
Low 2.8
In plain English
A low-severity null pointer dereference in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 39.8.5 | GHSA-f37v-82c4-4x64 |
| npm | electron | 40.8.5 | GHSA-f37v-82c4-4x64 |
| npm | electron | 41.1.0 | GHSA-f37v-82c4-4x64 |
| npm | electron | 42.0.0-alpha.5 | GHSA-f37v-82c4-4x64 |
Affected products (as reported)
Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/electron/electron/security/advisories/GHSA-f37v-82c4-4x64 x_refsource_CONFIRM