CVE-2021-39184

Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API

HIGH
8.6
CVSS Score
Published: October 12, 2021 at 07:05 PM UTC
Updated: June 17, 2026 at 04:03 AM UTC
2 products affected across 2 vendorsElectronElectron

Using electron by electron?

Get instant alerts when new vulnerabilities affect electron - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.6
Exploit prediction
EPSS 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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Affected range stops below 11.5.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.1.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 13.3.0, so it looks safe — our inference, not a vendor statement
v < 11.5.0v < 12.1.0v < 13.3.0
Affected range stops below 11.5.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.1.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 13.3.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-668CWE-862

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card