{"schemaVersion":3,"id":"CVE-2021-39184","aliases":["GHSA-mpjm-v997-c4h4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-10-12T19:05:11.000Z","modified":"2024-08-04T01:58:18.275Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.6,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":5.6,"impact":6.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.6,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0105,"percentile":0.63768,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0105},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0105,"percentile":0.63768}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0105,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0105,"percentile":0.63768}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere","description":"The product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/668.html"},{"id":"CWE-862","name":"Missing Authorization","description":"The product does not perform an authorization check when an actor attempts to access a resource or perform an action.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/862.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 11.5.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0.0, < 12.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0.0, < 13.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 11.5.0 | ≥ 12.0.0, < 12.1.0 | ≥ 13.0.0, < 13.3.0","eol":null,"hubHref":"/vendor/electron/electron"},{"vendor":"electronjs","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 10.1.0, < 11.5.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0.0, < 12.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0.0, < 13.3.0","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta10","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta11","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta12","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta13","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta14","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta15","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta16","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta17","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta18","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta19","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta20","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta21","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta22","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta23","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta24","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta25","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta7","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta8","noFixRecorded":false,"fixedIn":null},{"text":"14.0.0:beta9","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha2","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha3","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha4","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha5","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha6","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha7","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha8","noFixRecorded":false,"fixedIn":null},{"text":"15.0.0:alpha9","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 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","eol":{"isEol":true,"eolDate":"2022-03-29T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"14","label":"14","eolFrom":"2022-03-29T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"14.2.9"},"product":{"name":"electron","label":"Electron","category":"framework"}},"hubHref":"/vendor/electronjs/electron"},{"vendor":"Npm","product":"electron","name":"electron","label":"electron","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/electron","purlType":"npm","versions":[{"text":"< 11.5.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 12.0.0, < 12.1.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 13.0.0, < 13.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 11.5.0 | ≥ 12.0.0, < 12.1.0 | ≥ 13.0.0, < 13.3.0","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4","label":"github.com/electron/electron/security/advisories/GHSA-mpjm-v997-c4h4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Third Party Advisory"]},{"url":"https://github.com/electron/electron/pull/30728","label":"github.com/electron/electron/pull/30728","hostname":"github.com","tags":["X Refsource MISC","WEB","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-39184","label":"nvd.nist.gov/vuln/detail/CVE-2021-39184","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron/pull/30728/commits/8fed645bd671f359ee52d806c075ec4e07eda17f","label":"github.com/electron/electron/pull/30728/commits/8fed645bd671f359ee52d806c075ec4e07eda17f","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-10-12T19:05:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T01:58:18.275Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:55:32.888Z","stale":false,"partial":false}}