CVE-2026-54673

electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`

Published Jun 30, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
Description
electron-updater allows for automatic updates for Electron apps. Prior to 9.7.0, the HTTP redirect handler (HttpExecutor.prepareRedirectUrlOptions) only stripped a credential header whose key string matched exactly lowercase "authorization", exposing credentials. Other credential-bearing headers — most notably PRIVATE-TOKEN (used by GitLab's personal access token flow) and mixed-case Authorization (used by GitLab's Bearer/OAuth flow) — were not stripped and could be forwarded to an attacker-controlled cross-origin redirect destination. This issue has been fixed in version 9.7.0.

Analysis

AI-generated

Technical impact

Based on the description, the likely attack vector is that an attacker can supply or manipulate the update process to redirect to a malicious domain, causing the preserved credential headers to be forwarded. The electron‑updater component manages automatic updates for Electron applications. In versions before 9.7.0 the HTTP redirect handler only removed headers whose key was exactly "authorization" in lowercase, leaving headers such as PRIVATE‑TOKEN and mixed‑case Authorization intact when a redirect was followed. An attacker who can supply or convince the application to follow a redirect to a malicious domain could therefore have these credential headers forwarded, exposing sensitive authentication data. This behaviour corresponds to CWE‑200 and CWE‑201.

Affected Systems

The flaw exists in the builder‑util‑runtime library that is used by electron-builder, affecting all releases of that library and the electron‑builder package up to, but not including, version 9.7.0. Applications that rely on electron‑updater for automatic updates and that include private tokens or other credential headers in the update request are potentially impacted.

Risk and Exploitability

Based on the description, the likely attack vector involves controlling or influencing the update process so that the client follows a redirect to a malicious domain. The CVSS score of 8.2 indicates high severity. The EPSS score of < 1% suggests a low likelihood of exploitation at present, and the vulnerability is not listed in the CISA KEV catalog. Once the redirect occurs, the preserved PRIVATE‑TOKEN or Authorization headers are forwarded to that domain, resulting in credential compromise. No elevated privileges or special user interaction beyond normal update usage are required.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade electron-builder to version 9.7.0 or later to ensure that the redirect handler strips all credential headers.
  • If upgrading is not immediately possible, modify the application’s redirect logic to strip any header containing the words Authorization or PRIVATE‑TOKEN before a redirect is performed, or disable automatic redirects during the update process.
  • Validate the update server URL and enforce HTTPS to prevent accidental redirection to malicious hosts.

Generated by OpenCVE AI on August 2, 2026 at 01:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p2f4-r6v6-j797 electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
History
Type Values Removed Values Added
First Time appeared Electron
Electron builder-util-runtime
Electron electron-builder
CPEs cpe:2.3:a:electron:builder-util-runtime:*:*:*:*:*:node.js:*:*
cpe:2.3:a:electron:electron-builder:*:*:*:*:*:node.js:*:*
Vendors & Products Electron
Electron builder-util-runtime
Electron electron-builder
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
Weaknesses CWE-201
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Electron-userland
Electron-userland builder-util-runtime
Electron-userland electron-builder
Vendors & Products Electron-userland
Electron-userland builder-util-runtime
Electron-userland electron-builder
Type Values Removed Values Added
Description electron-updater allows for automatic updates for Electron apps. Prior to 9.7.0, the HTTP redirect handler (HttpExecutor.prepareRedirectUrlOptions) only stripped a credential header whose key string matched exactly lowercase "authorization", exposing credentials. Other credential-bearing headers — most notably PRIVATE-TOKEN (used by GitLab's personal access token flow) and mixed-case Authorization (used by GitLab's Bearer/OAuth flow) — were not stripped and could be forwarded to an attacker-controlled cross-origin redirect destination. This issue has been fixed in version 9.7.0.
Title electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
Weaknesses CWE-200
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 1, 2026, 1:26 PM
Reserved
Jun 15, 2026, 10:53 PM
Status
Analyzed
Published
Jun 30, 2026, 11:17 PM
Modified
Aug 26, 2026, 7:13 PM
Severity
Moderate
Public date
Jun 30, 2026, 10:11 PM