CVE-2021-39184

MEDIUM

Electron < 11.5.0, 12.1.0, 13.3.0 - Unauthorized File Content Exposure via Thumbnail API

Title source: llm
STIX 2.1

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.

References (2)

Core 2
Core References
Mitigation, Third Party Advisory x_refsource_confirm
https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4
Third Party Advisory x_refsource_misc
https://github.com/electron/electron/pull/30728

Scores

CVSS v3 6.8
EPSS 0.0102
EPSS Percentile 58.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Details

CWE
CWE-862 CWE-668
Status published
Products (4)
electronjs/electron 14.0.0 beta1 (25 CPE variants)
electronjs/electron 15.0.0 alpha1 (9 CPE variants)
electronjs/electron 10.1.0 - 11.5.0
npm/electron 0 - 11.5.0npm
Published Oct 12, 2021
Tracked Since Feb 18, 2026