Skip to content

Conversation

@renovate
Copy link

@renovate renovate bot commented Sep 25, 2024

This PR contains the following updates:

Package Change Age Confidence
electron-updater (source) ^4.6.5 -> ^6.0.0 age confidence

GitHub Vulnerability Alerts

CVE-2024-39698

Observations

The file packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts implements the signature validation routine for Electron applications on Windows. It executes the following command in a new shell (process.env.ComSpec on Windows, usually C:\Windows\System32\cmd.exe):

https://github.com/electron-userland/electron-builder/blob/140e2f0eb0df79c2a46e35024e96d0563355fc89/packages/electron-updater/src/windowsExecutableCodeSignatureVerifier.ts#L35-L41

Because of the surrounding shell, a first pass by cmd.exe expands any environment variable found in command-line above.

Exploitation

This creates a situation where verifySignature() can be tricked into validating the certificate of a different file than the one that was just downloaded. If the step is successful, the malicious update will be executed even if its signature is invalid.

Impact

This attack assumes a compromised update manifest (server compromise, Man-in-the-Middle attack if fetched over HTTP, Cross-Site Scripting to point the application to a malicious updater server, etc.).

Patch

This vulnerability was patched in #​8295, by comparing the path in the output of Get-AuthenticodeSignature with the intended one. The patch is available starting from 6.3.0-alpha.6.


Release Notes

electron-userland/electron-builder (electron-updater)

v6.3.0

Compare Source

Minor Changes
Patch Changes

v6.2.1

Compare Source

Patch Changes

v6.2.0

Compare Source

Minor Changes

v6.1.9

Compare Source

Patch Changes

v6.1.8

Compare Source

Patch Changes

v6.1.7

Compare Source

Patch Changes

v6.1.6

Compare Source

Patch Changes
  • Updated dependencies [549d07b0]:
    • builder-util-runtime@​9.2.2

v6.1.5

Compare Source

Patch Changes
  • #​7767 21f3069c Thanks @​jackple! - fix: When error code is ENOENT, try to use electron.shell.openPath to run installer on Windows

v6.1.4

Compare Source

Patch Changes

v6.1.3

Compare Source

Patch Changes

v6.1.2

Compare Source

Patch Changes

v6.1.1

Compare Source

Patch Changes

v6.1.0

Compare Source

Minor Changes
Patch Changes

v6.0.4

Compare Source

Patch Changes

v6.0.3

Compare Source

Patch Changes
  • #​7524 1a134800 Thanks @​NoahAndrews! - Fixed error handling when launching updater (fixes NSIS updates when isAdminRightsRequired is incorrectly set to false)

v6.0.2

Compare Source

Patch Changes

v6.0.1

Compare Source

Patch Changes

v6.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes

v5.3.0

Compare Source

Minor Changes

v5.2.4

Compare Source

Patch Changes

v5.2.3

Compare Source

Patch Changes

v5.2.2

Compare Source

Patch Changes
  • Updated dependencies [e7179b57]:
    • builder-util-runtime@​9.1.0

v5.2.1

Compare Source

Patch Changes

v5.2.0

Compare Source

Minor Changes
  • #​6907 e7f28677 Thanks @​panther7! - Add installDir property for NsisUpdater. Now is it posible change install folder from AppUpdater.

v5.1.0

Compare Source

Minor Changes
Patch Changes
  • #​6975 8279d053 Thanks @​ezekg! - Fix artifact conflicts for Keygen provider when multiple artifacts share the same filename across products.

  • Updated dependencies [adeaa347]:

    • builder-util-runtime@​9.0.3

v5.0.6

Compare Source

Patch Changes

v5.0.5

Compare Source

Patch Changes

v5.0.4

Compare Source

Patch Changes

v5.0.3

Compare Source

Patch Changes

v5.0.2

Compare Source

Patch Changes
  • 9a7ed436 - chore: updating dependency tree

  • Updated dependencies [9a7ed436]:

    • builder-util-runtime@​9.0.1

v5.0.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes
  • #​6589 633ee5dc Thanks @​devinbinnie! - - Removed backtick escaping for Windows code signing as it is unnecessary for Powershell and can cause the script to attempt to access the wrong file
    • Updated the proxy filename to be more secure (512-bit string)
  • #​6616 86e6d150 Thanks @​mmaietta! - fix(updater): Remove checks for app-update.yml when auto-updates are not supported

  • Updated dependencies [a138a86f]:

    • builder-util-runtime@​9.0.0

Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Author

renovate bot commented Sep 25, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm warn Unknown env config "store". This will stop working in the next major version of npm.
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: eslint-plugin-vue@7.11.1
npm error Found: eslint@8.1.0
npm error node_modules/eslint
npm error   dev eslint@"^8.1.0" from the root project
npm error   peer eslint@"^6.0.0 || ^7.0.0 || ^8.0.0" from @typescript-eslint/eslint-plugin@5.2.0
npm error   node_modules/@typescript-eslint/eslint-plugin
npm error     dev @typescript-eslint/eslint-plugin@"^5.2.0" from the root project
npm error   5 more (@typescript-eslint/experimental-utils, eslint-utils, ...)
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^6.2.0 || ^7.0.0" from eslint-plugin-vue@7.11.1
npm error node_modules/eslint-plugin-vue
npm error   dev eslint-plugin-vue@"^7.11.1" from the root project
npm error
npm error Conflicting peer dependency: eslint@7.32.0
npm error node_modules/eslint
npm error   peer eslint@"^6.2.0 || ^7.0.0" from eslint-plugin-vue@7.11.1
npm error   node_modules/eslint-plugin-vue
npm error     dev eslint-plugin-vue@"^7.11.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /runner/cache/others/npm/_logs/2025-12-03T17_43_37_491Z-eresolve-report.txt
npm error A complete log of this run can be found in: /runner/cache/others/npm/_logs/2025-12-03T17_43_37_491Z-debug-0.log

@renovate renovate bot changed the title fix(deps): update dependency electron-updater to v6 [security] fix(deps): update dependency electron-updater to v6 [security] - autoclosed Sep 25, 2024
@renovate renovate bot closed this Sep 25, 2024
@renovate renovate bot deleted the renovate/npm-electron-updater-vulnerability branch September 25, 2024 15:58
@renovate renovate bot changed the title fix(deps): update dependency electron-updater to v6 [security] - autoclosed fix(deps): update dependency electron-updater to v6 [security] Sep 26, 2024
@renovate renovate bot restored the renovate/npm-electron-updater-vulnerability branch September 26, 2024 20:09
@renovate renovate bot reopened this Sep 26, 2024
@renovate renovate bot force-pushed the renovate/npm-electron-updater-vulnerability branch from 83f22f6 to acbd6a6 Compare September 26, 2024 20:09
@renovate renovate bot changed the title fix(deps): update dependency electron-updater to v6 [security] fix(deps): update dependency electron-updater to v6 [security] - autoclosed Dec 8, 2024
@renovate renovate bot closed this Dec 8, 2024
@renovate renovate bot deleted the renovate/npm-electron-updater-vulnerability branch December 8, 2024 18:56
@renovate renovate bot changed the title fix(deps): update dependency electron-updater to v6 [security] - autoclosed fix(deps): update dependency electron-updater to v6 [security] Dec 8, 2024
@renovate renovate bot reopened this Dec 8, 2024
@renovate renovate bot force-pushed the renovate/npm-electron-updater-vulnerability branch from e31d153 to acbd6a6 Compare December 8, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant