CVE-2021-39184: electron Exposure of Resource to Wrong Sphere
Vulnerability summary
CVE-2021-39184 is a high (CVSS 8.6) Exposure of Resource to Wrong Sphere vulnerability in electron. EPSS estimates a 1.05% chance of exploitation in the next 30 days, higher than 63.7% of scored vulnerabilities.
Timeline
- 12-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:NDiffers
- OSV · NpmEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:NDiffers
EPSS trend
Probability
1.05%
Chance of exploitation in the next 30 days
Percentile
64%
Versus all other CVEs
30-day change
0.00 pp
From 1.05% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-668Exposure of Resource to Wrong SphereThe product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.
- CWE-862Missing AuthorizationThe product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Affected systems
Electron1 product
- electron< 11.5.0 | ≥ 12.0.0, < 12.1.0 | ≥ 13.0.0, < 13.3.0
Electronjs1 product
- electronEOL≥ 10.1.0, < 11.5.0 | ≥ 12.0.0, < 12.1.0 | ≥ 13.0.0, < 13.3.0 | 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:beta15 | 14.0.0:beta16 | 14.0.0:beta17 | 14.0.0:beta18 | 14.0.0:beta19 | 14.0.0:beta2 | 14.0.0:beta20 | 14.0.0:beta21 | 14.0.0:beta22 | 14.0.0:beta23 | 14.0.0:beta24 | 14.0.0:beta25 | 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 | 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
Npm1 product
- electron< 11.5.0 | ≥ 12.0.0, < 12.1.0 | ≥ 13.0.0, < 13.3.0
3 vendors · 3 products
References
5 links- github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4X Refsource CONFIRMWEBMitigationThird Party Advisory
- github.com/electron/electronPACKAGE