cve.bz

CVE-2022-36077 electronjs electron: Insufficiently Protected Credentials

6.1 mediumEPSS 0.7%Fix available

Medium (6.1) in electronjs electron. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in electron 18.3.7, 19.0.11, 20.0.1.

On this page
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.

Severity

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-522 Insufficiently Protected Credentials
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • electron (npm): fixed in 18.3.7, 20.0.1, 19.0.11

Ask an AI about this CVE

Show the promptExplain CVE-2022-36077 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-36077?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-36077?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-36077 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
electronjs:electronbefore 18.3.7
electronjs:electronfrom 19.0.0 before 19.0.11
electronjs:electronfrom 20.0.0 before 20.0.1
electronjs:electron21.0.0
electronjs:electron21.0.0:alpha1
electronjs:electron21.0.0:alpha2
electronjs:electron21.0.0:alpha3
electronjs:electron21.0.0:alpha4
electronjs:electron21.0.0:alpha5
electronjs:electron21.0.0:alpha6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p2jh-44qj-pf2vnpmelectron<18.3.718.3.7
GHSA-p2jh-44qj-pf2vnpmelectron>=20.0.0-beta.1 <20.0.120.0.1
GHSA-p2jh-44qj-pf2vnpmelectron>=19.0.0-beta.1 <19.0.1119.0.11

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat A-MQ OnlineelectronNot affected
Red Hat Application Interconnect 1.0skupper-routerNot affected
Red Hat build of Apicurio Registry 2electronNot affected
Red Hat Data Grid 8electronNot affected
Red Hat Decision Manager 7electronOut of support scope
Red Hat Fuse 7electronNot affected
Red Hat Integration Camel K 1electronNot affected
Red Hat Integration Service RegistryelectronNot affected
Red Hat JBoss Data Grid 7electronOut of support scope
Red Hat JBoss Enterprise Application Platform 6electronOut of support scope
Red Hat JBoss Enterprise Application Platform 7electronNot affected
Red Hat JBoss Enterprise Application Platform Expansion PackelectronNot affected
Red Hat Process Automation 7electronOut of support scope
Red Hat Process Automation 7org.optaweb.employeerostering-optaweb-employee-rosteringOut of support scope
Red Hat Single Sign-On 7electronNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-36077.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13), CWE-200 (59).

References

Check your stackJSON