Skip to content

CVE-2021-39184 Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API

HighCVSS 8.6 EPSS 1.1%
Published
Updated
Exploit status
No public exploit known

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. A vulnerability in versions prior to 11.5.0, 12.1.0, and 13.3.0 allows a sandboxed renderer to request a "thumbnail" image of an arbitrary file on the user's system. The thumbnail can potentially include significant parts of the original file, including textual data in many cases. Versions 15.0.0-alpha.10, 14.0.0, 13.3.0, 12.1.0, and 11.5.0 all contain a fix for the vulnerability. Two workarounds aside from upgrading are available. One may make the vulnerability significantly more difficult for an attacker to exploit by enabling contextIsolation in one's app. One may also disable the functionality of the createThumbnailFromPath API if one does not need it.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
electronjs electron = 14.0.0-beta1; = 14.0.0-beta2; = 14.0.0-beta3; = 14.0.0-beta4 +33 more 11.5.0, 12.1.0, 13.3.0 Fixed
npm electron(npm) < 11.5.0; >= 12.0.0, < 12.1.0; >= 13.0.0, < 13.3.0 11.5.0, 12.1.0, 13.3.0 Fixed
electron = < 11.5.0; = >= 12.0.0, < 12.1.0; = >= 13.0.0, < 13.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
npm electron(npm) < 11.5.0 11.5.0
npm electron(npm) >= 12.0.0, < 12.1.0 12.1.0
npm electron(npm) >= 13.0.0, < 13.3.0 13.3.0
electronjs electron >= 10.1.0, < 11.5.0 11.5.0
electronjs electron >= 12.0.0, < 12.1.0 12.1.0
electronjs electron >= 13.0.0, < 13.3.0 13.3.0
electronjs electron = 14.0.0-beta1 No fix listed
electronjs electron = 14.0.0-beta10 No fix listed
electronjs electron = 14.0.0-beta11 No fix listed
electronjs electron = 14.0.0-beta12 No fix listed
electronjs electron = 14.0.0-beta13 No fix listed
electronjs electron = 14.0.0-beta14 No fix listed
electronjs electron = 14.0.0-beta15 No fix listed
electronjs electron = 14.0.0-beta16 No fix listed
electronjs electron = 14.0.0-beta17 No fix listed
electronjs electron = 14.0.0-beta18 No fix listed
electronjs electron = 14.0.0-beta19 No fix listed
electronjs electron = 14.0.0-beta2 No fix listed
electronjs electron = 14.0.0-beta20 No fix listed
electronjs electron = 14.0.0-beta21 No fix listed
electronjs electron = 14.0.0-beta22 No fix listed
electronjs electron = 14.0.0-beta23 No fix listed
electronjs electron = 14.0.0-beta24 No fix listed
electronjs electron = 14.0.0-beta25 No fix listed
electronjs electron = 14.0.0-beta3 No fix listed
Show 18 more
ProductAffected versionsFixed in
electronjs electron = 14.0.0-beta4 No fix listed
electronjs electron = 14.0.0-beta5 No fix listed
electronjs electron = 14.0.0-beta6 No fix listed
electronjs electron = 14.0.0-beta7 No fix listed
electronjs electron = 14.0.0-beta8 No fix listed
electronjs electron = 14.0.0-beta9 No fix listed
electronjs electron = 15.0.0-alpha1 No fix listed
electronjs electron = 15.0.0-alpha2 No fix listed
electronjs electron = 15.0.0-alpha3 No fix listed
electronjs electron = 15.0.0-alpha4 No fix listed
electronjs electron = 15.0.0-alpha5 No fix listed
electronjs electron = 15.0.0-alpha6 No fix listed
electronjs electron = 15.0.0-alpha7 No fix listed
electronjs electron = 15.0.0-alpha8 No fix listed
electronjs electron = 15.0.0-alpha9 No fix listed
electron = < 11.5.0 No fix listed
electron = >= 12.0.0, < 12.1.0 No fix listed
electron = >= 13.0.0, < 13.3.0 No fix listed

References