CVE-2025-55305: Electron Remote Code Execution Vulnerability

MODERATE
Advisory Identifier: GHSA-vmqv-hx8q-j7mg
CVSS 6.1
CWE-829 CWE-94
Published
Advisory Summary

CVE-2025-55305 is a MODERATE (CVSS 6.1) remote code execution vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Electron libraries in the npm ecosystem. The issue involves electron has asar integrity bypass via resource modification. Remediation is available by upgrading affected packages to version 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6.

CVE-2025-55305 at a Glance

CVE Identifier CVE-2025-55305
GHSA Identifier GHSA-vmqv-hx8q-j7mg
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Electron
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2025-55305

To remediate this vulnerability, upgrade all affected Electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

electron fixed: 35.7.5
npm install electron@35.7.5
electron fixed: 36.8.1
npm install electron@36.8.1
electron fixed: 37.3.1
npm install electron@37.3.1
electron fixed: 38.0.0-beta.6
npm install electron@38.0.0-beta.6
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls electron

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-55305, inspect your project dependencies using npm:

npm ls electron

Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 35.7.5), your application is affected.

Note: The npm ls electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. In Electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact This only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` [fuses](https://www.electronjs.org/docs/latest/tutorial/fuses) enabled. Apps without these fuses enabled are not impacted. 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 `resources` folder in your app installation on Windows 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 * `38.0.0-beta.6` * `37.3.1` * `36.8.1` * `35.7.5` ### For more information If you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)

CVE-2025-55305 Affected Electron Versions

4 component(s)
Fixed Versions:
35.7.536.8.137.3.138.0.0-beta.6
Product / Package Ecosystem Affected Versions Fixed Version
electron
npm
< 35.7.5
35.7.5
electron
npm
≥ 36.0.0-alpha.1
< 36.8.1
36.8.1
electron
npm
≥ 37.0.0-alpha.1
< 37.3.1
37.3.1
electron
npm
≥ 38.0.0-alpha.1
< 38.0.0-beta.6
38.0.0-beta.6

References

Frequently Asked Questions

What is CVE-2025-55305?
CVE-2025-55305 is a security vulnerability in Electron involving Electron has ASAR Integrity Bypass via resource modification under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Electron versions are affected?
Affected versions include releases prior to 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6 across affected packages: electron.
What version fixes CVE-2025-55305?
Upgrading to 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is electron affected?
Yes, electron is affected in releases prior to 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6. Upgrade your dependency to 35.7.5, 36.8.1, 37.3.1, 38.0.0-beta.6 or later.
What is the CVSS score of CVE-2025-55305?
CVE-2025-55305 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2025-55305?
CVE-2025-55305 is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check npm dependencies for CVE-2025-55305?
Run the dependency tree command: 'npm ls electron'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vmqv-hx8q-j7mg",
  "modified" : "2025-09-05T16:10:10Z",
  "published" : "2025-09-03T21:27:37Z",
  "aliases" : [ "CVE-2025-55305" ],
  "summary" : "Electron has ASAR Integrity Bypass via resource modification",
  "details" : "### Impact\nThis only impacts apps that have the `embeddedAsarIntegrityValidation` and `onlyLoadAppFromAsar` [fuses](https://www.electronjs.org/docs/latest/tutorial/fuses) enabled.  Apps without these fuses enabled are not impacted.\n\nSpecifically 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 `resources` folder in your app installation on Windows which these fuses are supposed to protect against.\n\n### Workarounds\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n* `38.0.0-beta.6`\n* `37.3.1`\n* `36.8.1`\n* `35.7.5`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "35.7.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "36.0.0-alpha.1"
      }, {
        "fixed" : "36.8.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "37.0.0-alpha.1"
      }, {
        "fixed" : "37.3.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "electron"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "38.0.0-alpha.1"
      }, {
        "fixed" : "38.0.0-beta.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/security/advisories/GHSA-vmqv-hx8q-j7mg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55305"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/pull/48101"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/pull/48102"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/pull/48103"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/pull/48104"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/23a02934510fcf951428e14573d9b2d2a3c4f28b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/2e5a0b7220ebf955c6785cc5adb2e2b1cf77dac1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/3f92511cdecc39f46b0e86cce40a0c691e301c9d"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/electron/electron/commit/fdf29ce83870109d403f5c23ae529dbd0e8f4fee"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/electron/electron"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-829", "CWE-94" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-03T21:27:37Z",
    "nvd_published_at" : "2025-09-04T23:15:33Z"
  }
}