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.

Severity (CVSS 3.1)2.8Low
Exploit odds (30 days)0.1%top 95.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmelectron39.8.5GHSA-f37v-82c4-4x64
npmelectron40.8.5GHSA-f37v-82c4-4x64
npmelectron41.1.0GHSA-f37v-82c4-4x64
npmelectron42.0.0-alpha.5GHSA-f37v-82c4-4x64

Affected products (as reported)

VendorProductVersions
electron electron < 39.8.5>= 40.0.0-alpha.1, < 40.8.5>= 41.0.0-alpha.1, < 41.1.0>= 42.0.0-alpha.1, < 42.0.0-alpha.5

Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

References