{"id":"CVE-2021-39184","aliases":["GHSA-mpjm-v997-c4h4"],"url":"https://o3.security/vulnerability/CVE-2021-39184","summary":"Electron's sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API","details":"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.","published":"2021-10-12T19:15:07.987Z","modified":"2026-08-07T11:31:19.656338387Z","cvss":{"score":8.6,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"electron","fixedVersion":"11.5.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"12.1.0"},{"ecosystem":"npm","name":"electron","fixedVersion":"13.3.0"}],"fix":{"url":"https://github.com/electron/electron/pull/30728","label":"electron/electron#30728"},"references":[{"type":"ADVISORY","url":"https://github.com/electron/electron/pull/30728"},{"type":"ADVISORY","url":"https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:19.656338387Z"}}