GitHub Advisoryadvisory · npm

GHSA-xw5q-g62x-2qjc electron ASAR Integrity bypass by just modifying the content

HIGH Published 2025-06-30 Modified 2025-07-01 Official page ↗
Aliases
CVE-2024-46992
Ecosystem
npm
Packages
electron
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-354
Reviewed
2025-06-30

Affected packages

• npm electron: >= 30.0.0-alpha.1, < 30.0.5 → fixed in 30.0.5 • npm electron: >= 31.0.0-alpha.1, < 31.0.0-beta.1 → fixed in 31.0.0-beta.1

Description

electron's ASAR Integrity can be bypass by modifying the content. Impact 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 unimpacted. Specifically this issue can only be exploited if your 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. Workarounds There are no app side workarounds, you must update to a patched version of Electron. Fixed Versions • `30.0.5` • `31.0.0-beta.1` For more information If you have any questions or comments about this advisory, email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2024-46992 Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. vulnerability

Weakness · CWE (1)

  • CWE-354 Improper Validation of Integrity Check Value weakness

References