Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Electron app dependencies with known vulnerabilities #6166

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

raksooo
Copy link
Member

@raksooo raksooo commented Apr 23, 2024

This PR contains dependency updates for packages with known vulnerabilities, most of them were fixed by just running npm audit fix, but electron-builder had to be updated manually.

Most of the vulnerabilities doesn't affect our app, but the one in the dependency tree of electron-builder does. It enables privilege escelation on Windows by utilizing the following vulnerability in the installer: GHSA-r4pf-3v7r-hh55


This change is Reviewable

Copy link

linear bot commented Apr 23, 2024

@raksooo raksooo force-pushed the update-dependencies-with-known-vulnerabilities-des-902 branch from 79b91fd to 413e1d8 Compare April 23, 2024 07:23
@raksooo raksooo changed the title Update dependencies with known vulnerabilities Update Electron app dependencies with known vulnerabilities Apr 23, 2024
@raksooo raksooo force-pushed the update-dependencies-with-known-vulnerabilities-des-902 branch from 413e1d8 to 1d687f5 Compare April 23, 2024 08:01
@raksooo raksooo marked this pull request as draft April 24, 2024 06:49
@raksooo raksooo force-pushed the update-dependencies-with-known-vulnerabilities-des-902 branch from 1d687f5 to fea168d Compare April 24, 2024 06:50
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@raksooo raksooo force-pushed the update-dependencies-with-known-vulnerabilities-des-902 branch 6 times, most recently from 0091c0d to a6408b4 Compare April 24, 2024 18:57
@raksooo raksooo marked this pull request as ready for review April 24, 2024 18:58
@raksooo
Copy link
Member Author

raksooo commented Apr 24, 2024

To make the notarization work I had to:

  1. Switch to electron-builder built-in notarization for the .app
  2. Move .pkg notarization to the build script.

Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a mess 😂 Gj on finding a solution 🙌

Reviewed 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

raksooo added 4 commits April 25, 2024 10:06
To fix issues with electron-builder and @electron/notarize this commit:
* Replaces old notarization code with built-in solution in
  electron-builder
* Moves notarization of pkg to build.sh
@raksooo raksooo force-pushed the update-dependencies-with-known-vulnerabilities-des-902 branch from a6408b4 to c94fc08 Compare April 25, 2024 08:06
@raksooo raksooo merged commit 4136d7d into main Apr 25, 2024
36 checks passed
@raksooo raksooo deleted the update-dependencies-with-known-vulnerabilities-des-902 branch April 25, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants