NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-34781: Electron: Crash in clipboard.readImage() on malformed clipboard image data

lowCVSS 3.1 2.8GHSA-f37v-82c4-4x64

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.

Published Apr 7, 2026 · Updated Apr 8, 2026

Affected packages

electron

Ecosystem
npm
Affected
< 39.8.5
Fixed in
39.8.5
Check
npm ls electron

electron

Ecosystem
npm
Affected
>= 40.0.0-alpha.1, < 40.8.5
Fixed in
40.8.5
Check
npm ls electron

electron

Ecosystem
npm
Affected
>= 41.0.0-alpha.1, < 41.1.0
Fixed in
41.1.0
Check
npm ls electron

electron

Ecosystem
npm
Affected
>= 42.0.0-alpha.1, < 42.0.0-alpha.5
Fixed in
42.0.0-alpha.5
Check
npm ls electron

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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]](mailto:[email protected])

Credited to frostb1ten.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries