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

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.05%, higher than 65% of CVEs (2026-12-01)
- Published: 2021-10-12T19:05:11.000Z
- Modified: 2026-07-08T06:29:30.611Z
- Also known as: GHSA-mpjm-v997-c4h4
- Weaknesses: CWE-668, CWE-862
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electron electron: < 11.5.0; >= 12.0.0, < 12.1.0; >= 13.0.0, < 13.3.0
- electron (npm): before 11.5.0; from 12.0.0 before 12.1.0; from 13.0.0 before 13.3.0
- electronjs electron: from 10.1.0 before 11.5.0; from 12.0.0 before 12.1.0; from 13.0.0 before 13.3.0; 14.0.0; 15.0.0

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4> (mitigation, third-party-advisory, web)
- <https://github.com/electron/electron/pull/30728> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-39184> (advisory)
- <https://github.com/electron/electron/pull/30728/commits/8fed645bd671f359ee52d806c075ec4e07eda17f> (web)
- <https://github.com/electron/electron> (package)

## Sources

- CVE List: [CVE-2021-39184](https://www.cve.org/CVERecord?id=CVE-2021-39184), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mpjm-v997-c4h4](https://github.com/advisories/GHSA-mpjm-v997-c4h4), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-39184](https://nvd.nist.gov/vuln/detail/CVE-2021-39184), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-39184 · Whole record: https://cve.day/CVE-2021-39184.json · Rebuilt by cve.day 2026-11-25T22:58:04.443Z
