{"id":"CVE-2022-36077","aliases":["CVE-2022-36077","GHSA-p2jh-44qj-pf2v"],"related":[],"kind":"vulnerability","state":"published","title":"Electron subject to Exfiltration of hashed SMB credentials on Windows via file:// redirect","summary":"The Electron framework enables writing cross-platform desktop applications using JavaScript, HTML and CSS. In versions prior to 21.0.0-beta.1, 20.0.1, 19.0.11, and 18.3.7, Electron is vulnerable to Exposure of Sensitive Information. When following a redirect, Electron delays a check for redirecting to file:// URLs from other schemes. The contents of the file is not available to the renderer following the redirect, but if the redirect target is a SMB URL such as `file://some.website.com/`, then in some cases, Windows will connect to that server and attempt NTLM authentication, which can include sending hashed credentials.This issue has been patched in versions: 21.0.0-beta.1, 20.0.1, 19.0.11, and 18.3.7. Users are recommended to upgrade to the latest stable version of Electron. If upgrading isn't possible, this issue can be addressed without upgrading by preventing redirects to file:// URLs in the `WebContents.on('will-redirect')` event, for all WebContents as a workaround.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Electron framework enables writing cross-platform desktop applications using JavaScript, HTML and CSS. In versions prior to 21.0.0-beta.1, 20.0.1, 19.0.11, and 18.3.7, Electron is vulnerable to Exposure of Sensitive Information. When following a redirect, Electron delays a check for redirecting to file:// URLs from other schemes. The contents of the file is not available to the renderer following the redirect, but if the redirect target is a SMB URL such as `file://some.website.com/`, then in some cases, Windows will connect to that server and attempt NTLM authentication, which can include sending hashed credentials.This issue has been patched in versions: 21.0.0-beta.1, 20.0.1, 19.0.11, and 18.3.7. Users are recommended to upgrade to the latest stable version of Electron. If upgrading isn't possible, this issue can be addressed without upgrading by preventing redirects to file:// URLs in the `WebContents.on('will-redirect')` event, for all WebContents as a workaround.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen following a redirect, Electron delays a check for redirecting to file:// URLs from other schemes. The contents of the file is not available to the renderer following the redirect, but if the redirect target is a SMB URL such as `file://some.website.com/`, then in some cases, Windows will connect to that server and attempt NTLM authentication, which can include sending hashed credentials.\n\n### Patches\nThis issue has been fixed in all current stable versions of Electron. Specifically, these versions contain the fixes:\n\n- 21.0.0-beta.1\n- 20.0.1\n- 19.0.11\n- 18.3.7\n\nWe recommend all apps upgrade to the latest stable version of Electron.\n\n### Workarounds\nIf upgrading isn't possible, this issue can be addressed without upgrading by preventing redirects to file:// URLs in the `WebContents.on('will-redirect')` event, for all WebContents:\n\n```js\napp.on('web-contents-created', (e, webContents) => {\n  webContents.on('will-redirect', (e, url) => {\n    if (/^file:/.test(url)) e.preventDefault()\n  })\n})\n```\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org).\n\n### Credit\nThanks to user @coolcoolnoworries for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El framework Electron permite escribir aplicaciones de escritorio multiplataforma utilizando JavaScript, HTML y CSS. En versiones anteriores a 21.0.0-beta.1, 20.0.1, 19.0.11 y 18.3.7, Electron es vulnerable a la exposición de información confidencial. Al seguir una redirección, Electron retrasa la verificación de la redirección a file:// URL desde otros esquemas. El contenido del archivo no está disponible para el renderizador después de la redirección, pero si el destino de la redirección es una URL SMB como `file://some.website.com/`, en algunos casos, Windows se conectará a ese servidor e intente la autenticación NTLM, que puede incluir el envío de credenciales hash. Este problema se solucionó en las versiones: 21.0.0-beta.1, 20.0.1, 19.0.11 y 18.3.7. Se recomienda a los usuarios actualizar a la última versión estable de Electron. Si no es posible realizar la actualización, este problema se puede solucionar sin realizar la actualización evitando las redirecciones a las URL file:// en el evento `WebContents.on('will-redirect')`, para todos los WebContents como workaround alternativo.","source":"nvd"}],"published":"2022-11-08T00:00:00.000Z","modified":"2026-06-17T04:52:52.090Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:L","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-522"],"affected":[{"ranges":[{"version":">= v21.0.0-nightly.20220526, < 21.0.0-beta.1","status":"affected"},{"version":">= 20.0.0-beta.1, < 20.0.1","status":"affected"},{"version":">= 19.0.0-beta.1, < 19.0.11","status":"affected"},{"version":"< 18.3.7","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"18.3.7"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"20.0.0-beta.1","status":"affected","fixed":"20.0.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"19.0.0-beta.1","status":"affected","fixed":"19.0.11"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"18.3.7"},{"status":"affected","introduced":"19.0.0","fixed":"19.0.11"},{"status":"affected","introduced":"20.0.0","fixed":"20.0.1"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"},{"status":"affected","version":"21.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-p2jh-44qj-pf2v","tags":["mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36077","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:49:23.434Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36077","url":"https://www.cve.org/CVERecord?id=CVE-2022-36077","licence":"CVE Terms of Use","modified":"2025-04-23T16:40:13.698Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p2jh-44qj-pf2v","url":"https://github.com/advisories/GHSA-p2jh-44qj-pf2v","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:59.820Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36077","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36077","licence":"Public domain","modified":"2026-06-17T04:52:52.090Z"}],"updatedAt":"2026-11-25T22:58:16.265Z","epss":{"score":0.00688,"percentile":0.53991,"date":"2026-12-01T12:00:22.000Z"}}