CVE-2021-39184: Electron - Information Disclosure
- Cve: CVE-2021-39184
- Name: Electron - Information Disclosure
- 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.
- Impact: Attackers can retrieve sensitive file contents via thumbnails, potentially leading to information disclosure.
- Remediation: Upgrade to Electron 15.0.0-alpha.10, 14.0.0, 13.3.0, 12.1.0, or 11.5.0 or later. Alternatively, enable contextIsolation or disable createThumbnailFromPath API if not needed.
- Vulnerability impact: information_disclosure
- Requirement type: user_interaction
- Requirements: Renderer process must request thumbnail images
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- Epss score: 0.0105
- Epss percentile: 0.64951
- Assignee: [email protected]
- Published at: 2021-10-12T19:15:07Z
- Age in days: 1869
- Modified at: 2026-06-17T04:03:16Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-39184
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: vulnerability type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere |
| CWE-862 | Missing Authorization |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4 | nvd | Mitigation, Third Party Advisory |
| https://github.com/electron/electron/pull/30728 | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| electronjs:electron | = 14.0.0 beta25; = 14.0.0 beta24; = 14.0.0 beta23; = 14.0.0 beta22; = 14.0.0 beta21; = 14.0.0 beta20; = 14.0.0 beta19; = 14.0.0 beta18; = 14.0.0 beta17; = 14.0.0 beta16; = 15.0.0 alpha1; = 15.0.0 alpha2; = 15.0.0 alpha3; = 15.0.0 alpha4; = 15.0.0 alpha5; = 15.0.0 alpha6; = 15.0.0 alpha7; = 15.0.0 alpha8; = 15.0.0 alpha9; = 14.0.0 beta15; = 14.0.0 beta1; = 14.0.0 beta10; = 14.0.0 beta11; = 14.0.0 beta12; = 14.0.0 beta13; = 14.0.0 beta14; = 14.0.0 beta2; = 14.0.0 beta3; = 14.0.0 beta4; = 14.0.0 beta5; = 14.0.0 beta6; = 14.0.0 beta7; = 14.0.0 beta8; = 14.0.0 beta9; >= 13.0.0, < 13.3.0; >= 12.0.0, < 12.1.0; >= 10.1.0, < 11.5.0 | no | nvd | /v1/products/electronjs/electron |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| electron/electron | package, pull, security_advisory | yes | /v1/repositories/electron/electron |
Index
- Repositories: 2
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts