# CVE-2021-39184: Sandboxed renderers can obtain thumbnails of arbitrary files through the nativeImage API

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-10-12 · Modified: 2024-08-04
- Aliases: GHSA-mpjm-v997-c4h4
- Record: https://cvemate.com/vulnerability/CVE-2021-39184 · JSON: https://cvemate.com/vulnerability/CVE-2021-39184/json

## Description

```text
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.
```

## Signals

- CVSS: 8.6 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
- EPSS: 1.05%, percentile 65.377%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron electron: \< 11.5.0 \| ≥ 12.0.0, \< 12.1.0 \| ≥ 13.0.0, \< 13.3.0
- electronjs electron: ≥ 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
- Npm electron (Npm): \< 11.5.0 \| ≥ 12.0.0, \< 12.1.0 \| ≥ 13.0.0, \< 13.3.0

## References

- <https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4>
- <https://github.com/electron/electron/pull/30728>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39184>
- <https://github.com/electron/electron/pull/30728/commits/8fed645bd671f359ee52d806c075ec4e07eda17f>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T11:43:14.838Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
