Advisory

GHSA-xw5q-g62x-2qjc

Also known as: CVE-2024-46992

Summary

electron ASAR Integrity bypass by just modifying the content

Details

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]](mailto:[email protected])

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-06-30 17:54 UTC
Modified
2025-07-01 13:13 UTC

Affected packages and fixes

electron

npm · All systems

Affected

  • introduced 30.0.0-alpha.1, fixed 30.0.5 (semver)

Fixed versions

30.0.5

Fix

electron

npm · All systems

Affected

  • introduced 31.0.0-alpha.1, fixed 31.0.0-beta.1 (semver)

Fixed versions

31.0.0-beta.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences