cve.bz

CVE-2022-29257 electronjs electron: Improper Input Validation

7.2 highEPSS 0.9%Fix available

High (7.2) in electronjs electron. EPSS 0.9% estimated probability of exploitation activity in the next 30 days. Fixed in electron 15.5.0, 16.2.0, 17.2.0.

On this page
Electron is a framework for writing cross-platform desktop applications using JavaScript (JS), HTML, and CSS. A vulnerability in versions prior to 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 allows attackers who have control over a given apps update server / update storage to serve maliciously crafted update packages that pass the code signing validation check but contain malicious code in some components. This kind of attack would require significant privileges in a potential victim's own auto updating infrastructure and the ease of that attack entirely depends on the potential victim's infrastructure security. Electron versions 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 contain a fix for this issue. There are no known workarounds.

Severity

CVSS 3.1

7.2 high
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd 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: no · Technical impact: total, 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.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • electron (npm): fixed in 15.5.0, 16.2.0, 17.2.0, 18.0.0-beta.6

Ask an AI about this CVE

Show the promptExplain CVE-2022-29257 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-29257?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-29257?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-29257 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 15.5.0
electronjs:electronfrom 16.0.1 before 16.2.0
electronjs:electronfrom 17.0.1 before 17.2.0
electronjs:electron16.0.0:beta1
electronjs:electron16.0.0:beta2
electronjs:electron16.0.0:beta3
electronjs:electron16.0.0:beta4
electronjs:electron16.0.0:beta5
electronjs:electron16.0.0:beta6
electronjs:electron16.0.0:beta7
electronjs:electron16.0.0:beta8
electronjs:electron16.0.0:beta9
electronjs:electron17.0.0:beta1
electronjs:electron17.0.0:beta2
electronjs:electron17.0.0:beta3
electronjs:electron17.0.0:beta4
electronjs:electron17.0.0:beta5
electronjs:electron17.0.0:beta6
electronjs:electron17.0.0:beta7
electronjs:electron17.0.0:beta8
electronjs:electron17.0.0:beta9
electronjs:electron18.0.0:beta1
electronjs:electron18.0.0:beta2
electronjs:electron18.0.0:beta3
electronjs:electron18.0.0:beta4
electronjs:electron18.0.0:beta5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-77xc-hjv8-ww97npmelectron<15.5.015.5.0
GHSA-77xc-hjv8-ww97npmelectron>=16.0.0 <16.2.016.2.0
GHSA-77xc-hjv8-ww97npmelectron>=17.0.0 <17.2.017.2.0
GHSA-77xc-hjv8-ww97npmelectron>=18.0.0-beta.1 <18.0.0-beta.618.0.0-beta.6

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-20 (51).

References

Check your stackJSON