CVE-2026-54673
electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
CVE-2026-54673 is a high vulnerability (CVSS 8.2) in Electron Builder-util-runtime, published June 30, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.41%, the 35th percentile. Fixed in builder-util-runtime 9.7.0.
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- Passive
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.2
electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
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.
- Record
CVE-2026-54673- CVSS 4.0
- 8.2 High
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
EUVDEUVD-2026-40455
8.2
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.
- Record
EUVD-2026-40455- CVSS 4.0
- 8.2 High
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-p2f4-r6v6-j797
8.2
electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
Summary
In electron-builder's builder-util-runtime package, the HTTP redirect handler (HttpExecutor.prepareRedirectUrlOptions) only stripped a credential header whose key string matched exactly lowercase "authorization". 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.
Details
Root cause
HttpExecutor.prepareRedirectUrlOptions (introduced in builder-util-runtime via PR #9211, first released in v26.0.20) performed its cross-origin credential strip with a single case-sensitive property check:
// vulnerable code (electron-builder v26.0.20 – v26.14.x) [via builder-util-runtime <9.7.0]
if (headers?.authorization) {
if (HttpExecutor.isCrossOriginRedirect(originalUrl, parsedRedirectUrl)) {
delete headers.authorization // only removes the exact key "authorization"
}
}
JavaScript object property access is case-sensitive. The guard headers?.authorization evaluates to undefined (falsy) when the key is "Authorization", "AUTHORIZATION", or any other casing, so the branch is never entered and no header is deleted for those cases.
Affected updater flows
The clearest reproduced path is the private GitLab updater flow.
packages/electron-updater/src/providers/GitLabProvider.ts sets one of two credential headers depending on the token type:
// GitLabProvider.setAuthHeaderForToken (affected versions)
if (token.startsWith("Bearer")) {
headers.authorization = token // Bearer / OAuth token → key is lowercase
} else {
headers["PRIVATE-TOKEN"] = token // personal access token → key is "PRIVATE-TOKEN"
}
During a private release update check, the updater requests a release asset through GitLab's direct_asset_url. GitLab commonly redirects asset downloads to an external object-storage origin (e.g., S3, GCS). Because the redirect crosses origins:
- A personal access token in
PRIVATE-TOKENis never inspected by the vulnerable strip guard — it is forwarded intact. - A Bearer token set as
headers.authorization(lowercase) is stripped correctly. - A Bearer token set as
headers.Authorization(capital A) or any other mixed-case variant bypasses the guard and is forwarded intact.
GitLab is the concrete reproduced case; any other provider or custom updater configuration that places credentials in a non-lowercase-authorization header is equally affected.
Before v26.0.20
Versions prior to v26.0.20 did not contain prepareRedirectUrlOptions at all. All credential headers were forwarded unchanged on every redirect, regardless of origin. This represents a broader, pre-existing version of the same class of vulnerability.
Proof of concept (reproduction shape)
- Configure the updater with an authenticated GitLab provider, supplying a personal access token (non-Bearer). The provider will set
PRIVATE-TOKEN: <token>on requests. - Trigger an update check. The updater fetches release metadata and then requests a release asset URL.
- The trusted GitLab origin returns a 3xx cross-origin redirect (e.g., to S3 object storage).
HttpExecutor.prepareRedirectUrlOptionsis called. The guardheaders?.authorizationis falsy (the key is"PRIVATE-TOKEN"). No header is deleted.- The request to the redirect destination is issued with
PRIVATE-TOKEN: <token>present in the headers.
Observed result: The personal access token is forwarded to the redirect destination. An attacker who controls or can observe the redirect destination receives the token.
Impact
This is a credential disclosure vulnerability. An automatic update check can leak:
- GitLab personal access tokens (
PRIVATE-TOKEN) -…
- Record
GHSA-p2f4-r6v6-j797- CVSS 4.0
- 8.2 High
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
NVD
8.2
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.
- Record
CVE-2026-54673- CVSS 4.0
- 8.2 High
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
OSV
8.2
electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
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.
- Record
CVE-2026-54673- CVSS 4.0
- 8.2 High
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVGHSA-p2f4-r6v6-j797
8.2
electron-updater: Cross-origin redirect leaks `PRIVATE-TOKEN` and mixed-case `Authorization` credentials in `builder-util-runtime`
Summary
In electron-builder's builder-util-runtime package, the HTTP redirect handler (HttpExecutor.prepareRedirectUrlOptions) only stripped a credential header whose key string matched exactly lowercase "authorization". 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.
Details
Root cause
HttpExecutor.prepareRedirectUrlOptions (introduced in builder-util-runtime via PR #9211, first released in v26.0.20) performed its cross-origin credential strip with a single case-sensitive property check:
// vulnerable code (electron-builder v26.0.20 – v26.14.x) [via builder-util-runtime <9.7.0]
if (headers?.authorization) {
if (HttpExecutor.isCrossOriginRedirect(originalUrl, parsedRedirectUrl)) {
delete headers.authorization // only removes the exact key "authorization"
}
}
JavaScript object property access is case-sensitive. The guard headers?.authorization evaluates to undefined (falsy) when the key is "Authorization", "AUTHORIZATION", or any other casing, so the branch is never entered and no header is deleted for those cases.
Affected updater flows
The clearest reproduced path is the private GitLab updater flow.
packages/electron-updater/src/providers/GitLabProvider.ts sets one of two credential headers depending on the token type:
// GitLabProvider.setAuthHeaderForToken (affected versions)
if (token.startsWith("Bearer")) {
headers.authorization = token // Bearer / OAuth token → key is lowercase
} else {
headers["PRIVATE-TOKEN"] = token // personal access token → key is "PRIVATE-TOKEN"
}
During a private release update check, the updater requests a release asset through GitLab's direct_asset_url. GitLab commonly redirects asset downloads to an external object-storage origin (e.g., S3, GCS). Because the redirect crosses origins:
- A personal access token in
PRIVATE-TOKENis never inspected by the vulnerable strip guard — it is forwarded intact. - A Bearer token set as
headers.authorization(lowercase) is stripped correctly. - A Bearer token set as
headers.Authorization(capital A) or any other mixed-case variant bypasses the guard and is forwarded intact.
GitLab is the concrete reproduced case; any other provider or custom updater configuration that places credentials in a non-lowercase-authorization header is equally affected.
Before v26.0.20
Versions prior to v26.0.20 did not contain prepareRedirectUrlOptions at all. All credential headers were forwarded unchanged on every redirect, regardless of origin. This represents a broader, pre-existing version of the same class of vulnerability.
Proof of concept (reproduction shape)
- Configure the updater with an authenticated GitLab provider, supplying a personal access token (non-Bearer). The provider will set
PRIVATE-TOKEN: <token>on requests. - Trigger an update check. The updater fetches release metadata and then requests a release asset URL.
- The trusted GitLab origin returns a 3xx cross-origin redirect (e.g., to S3 object storage).
HttpExecutor.prepareRedirectUrlOptionsis called. The guardheaders?.authorizationis falsy (the key is"PRIVATE-TOKEN"). No header is deleted.- The request to the redirect destination is issued with
PRIVATE-TOKEN: <token>present in the headers.
Observed result: The personal access token is forwarded to the redirect destination. An attacker who controls or can observe the redirect destination receives the token.
Impact
This is a credential disclosure vulnerability. An automatic update check can leak:
- GitLab personal access tokens (
PRIVATE-TOKEN) -…
- Record
GHSA-p2f4-r6v6-j797- CVSS 4.0
- 8.2 High
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 - Weakness
- CWE-200
- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11200-1 No score
heroic-games-launcher-2.22.0-4.1 on GA media
These are all security issues fixed in the heroic-games-launcher-2.22.0-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11200-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
builder-util-runtimenpm |
before 9.7.0 | 9.7.0 |
heroic-games-launcheropenSUSE:Tumbleweed |
before 2.22.0-4.1 | 2.22.0-4.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
github.com/electron-userland/electron-builder/security/advisories/GHSA-p2f4-r6v6-j797
github.com/electron-userland/electron-builder/commit/22a7532bd01b9fb42cff7c58d599c7ad683569fe
nvd.nist.gov/vuln/detail/CVE-2026-54673
github.com/electron-userland/electron-builder/pull/9834
github.com/electron-userland/electron-builder/releases/tag/[email protected]
github.com/advisories/GHSA-p2f4-r6v6-j797
Left out here: the rest of 2 source descriptions. The JSON record has them.