Vulnerability · Published Jul 1, 2025 · Assigned by GitHub_M
CVE-2024-46992Electron ASAR Integrity bypass by just modifying the content
High 7.8
In plain English
A high-severity security flaw in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions 30.0.0-alpha.1 to before 30.0.5 and 31.0.0-alpha.1 to before 31.0.0-beta.1, Electron is vulnerable to an ASAR Integrity bypass. This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to Windows, apps using these fuses on macOS are not impacted. Specifically this issue can only be exploited if the app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the .app bundle on macOS which these fuses are supposed to protect against. This issue has been patched in versions 30.0.5 and 31.0.0-beta.1. There are no workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 30.0.5 | GHSA-xw5q-g62x-2qjc |
| npm | electron | 31.0.0-beta.1 | GHSA-xw5q-g62x-2qjc |
Affected products (as reported)
Weakness: CWE-354 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/electron/electron/security/advisories/GHSA-xw5q-g62x-2qjc x_refsource_CONFIRM
- https://www.electronjs.org/docs/latest/tutorial/fuses x_refsource_MISC