GitHub Advisoryadvisory · npm

GHSA-f37v-82c4-4x64 Electron: Crash in clipboard.readImage() on malformed clipboard image data

LOW Published 2026-04-07 Modified 2026-04-08 Official page ↗
Aliases
CVE-2026-34781
Ecosystem
npm
Packages
electron
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
Weaknesses
CWE-476
Reviewed
2026-04-07

Affected packages

• npm electron: < 39.8.5 → fixed in 39.8.5 • npm electron: >= 40.0.0-alpha.1, < 40.8.5 → fixed in 40.8.5 • npm electron: >= 41.0.0-alpha.1, < 41.1.0 → fixed in 41.1.0 • npm electron: >= 42.0.0-alpha.1, < 42.0.0-alpha.5 → fixed in 42.0.0-alpha.5

Description

Impact 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. Workarounds Validate 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. Fixed Versions • `42.0.0-alpha.5` • `41.1.0` • `40.8.5` • `39.8.5` For more information If you have any questions or comments about this advisory, email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2026-34781 Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. vulnerability

Weakness · CWE (1)

  • CWE-476 NULL Pointer Dereference weakness

References