Live threats

All CVEs / Electronjs

CVE-2021-39184Electronjs Electron

High 8.6 No auth needed

Priority
67
CVSS 3.1
8.6
EPSS
1.1%
probability of exploitation in 30 days · percentile 64
Auth required
No
Published
Oct 12, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-668, CWE-862
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Electron.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm electron < 11.5.0 11.5.0 npm install electron@11.5.0
npm electron ≥ 12.0.0 < 12.1.0 12.1.0 npm install electron@12.1.0
npm electron ≥ 13.0.0 < 13.3.0 13.3.0 npm install electron@13.3.0

Per OSV / GitHub Advisories (GHSA-mpjm-v997-c4h4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
electronjselectron≥ 10.1.0 < 11.5.0
electronjselectron≥ 12.0.0 < 12.1.0
electronjselectron≥ 13.0.0 < 13.3.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron14.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0
electronjselectron15.0.0

Official sources

References

Links published by the sources. Open them with care.