CVE-2021-39184Electronjs Electron
High 8.6 No auth needed
Follow: this CVE · Electronjs · Electronjs Electron We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Electron.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| electronjs | electron | ≥ 10.1.0 < 11.5.0 |
| electronjs | electron | ≥ 12.0.0 < 12.1.0 |
| electronjs | electron | ≥ 13.0.0 < 13.3.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 14.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
| electronjs | electron | 15.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Mitigation Third Party Advisory