CVE-2022-29257: Vulnerability in Electron AutoUpdater Module

electron Updated 02 Oct 2025

Summary

16/06/2022
Yes i
Moderate
6.6

CVE-2022-29257: AutoUpdater module fails to validate certain nested components of the bundle. Affects electron across 4 version ranges.

< 15.5.0 >= 16.0.0, < 16.2.0 >= 17.0.0, < 17.2.0 >= 18.0.0-beta.1, < 18.0.0-beta.6

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Electron is an open-source framework that allows developers to build cross-platform desktop applications using web technologies such as HTML, CSS, and JavaScript. The AutoUpdater module in Electron enables automatic updates for Electron-based applications. It ensures that users have the latest version of the application by checking for updates and downloading them from a designated server. However, a vulnerability has been discovered in the AutoUpdater module that allows attackers with control over the update server or storage to serve maliciously crafted update packages. These packages can pass the code signing validation check but contain malicious code in certain components.

Vulnerability Detail

The vulnerability in the AutoUpdater module of Electron allows attackers to exploit the update process and deliver malicious code to users. By compromising the update server or storage, attackers can serve update packages that appear legitimate but contain malicious code. This can lead to various security risks, including remote code execution, data theft, and unauthorized access to user systems. It's important to note that exploiting this vulnerability requires significant privileges in the auto updating infrastructure and depends on the security measures implemented in the infrastructure.

How To Fix

Latest published version: 45.0.0 as of 22 Oct 2026

npm install electron@45.0.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 15.5.0 15.5.0
    npm install electron@15.5.0
  • >= 16.0.0, < 16.2.0 16.2.0
    npm install electron@16.2.0
  • >= 17.0.0, < 17.2.0 17.2.0
    npm install electron@17.2.0
  • >= 18.0.0-beta.1, < 18.0.0-beta.6 18.0.0-beta.6
    npm install electron@18.0.0-beta.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There are no known workarounds for this vulnerability. It is crucial to update to a patched version of Electron to address the issue.

Conclusion

The vulnerability in the AutoUpdater module of Electron exposes users to the risk of installing malicious code through compromised update packages. To protect against this vulnerability, it is crucial to update to a patched version of Electron. The recommended versions are 18.0.0-beta.6, 17.2.0, 16.2.0, or 15.5.0. Updating to these versions ensures that the AutoUpdater module properly validates all components of the update bundle, reducing the risk of serving and installing malicious code. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for electron →

Share this vulnerability

FAQ

Electron is an open-source framework that allows developers to build cross-platform desktop applications using web technologies such as HTML, CSS, and JavaScript.

The AutoUpdater module in Electron enables automatic updates for Electron-based applications. It checks for updates and downloads them from a designated server to ensure users have the latest version of the application.

The vulnerability allows attackers with control over the update server or storage to serve maliciously crafted update packages. These packages can pass the code signing validation check but contain malicious code in certain components. When users install these updates, the malicious code can be executed on their systems.

The potential risks of this vulnerability include remote code execution, data theft, and unauthorized access to user systems. Attackers can exploit the vulnerability to deliver and execute malicious code on user systems.

No, there are no known workarounds for this vulnerability. It is essential to update to a patched version of Electron to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for electron.

How To Fix

Latest published version: 45.0.0 as of 22 Oct 2026

npm install electron@45.0.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 15.5.0 15.5.0
    npm install electron@15.5.0
  • >= 16.0.0, < 16.2.0 16.2.0
    npm install electron@16.2.0
  • >= 17.0.0, < 17.2.0 17.2.0
    npm install electron@17.2.0
  • >= 18.0.0-beta.1, < 18.0.0-beta.6 18.0.0-beta.6
    npm install electron@18.0.0-beta.6

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback