Repository navigation
Bump @electron/packager to 20.3.0 - #22928
Merged
Merged
Conversation
…9693) extract-zip <= 2.0.1 (a transitive dependency pulled in by @electron/[email protected]) allows arbitrary file writes via symlink archive entries (GHSA-7pqw-9j4j-h8q3). extract-zip has no patched release, so the fix is to upgrade @electron/packager past the version where it dropped extract-zip in favor of @electron-internal/extract-zip. - Bump @electron/packager from ^18.4.4 to ^20.3.0 - Adapt script/build.ts to the new ESM-only packager export via dynamic import() - Enable skipLibCheck in script/tsconfig.json to avoid unrelated type declaration conflicts pulled in by the upgraded dependency tree Fixes https://github.com/desktop/desktop/security/dependabot/351 Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🔵 Needs a closer look
The two-major packaging-tool upgrade affects release artifacts, and cross-platform packaging verification is not yet complete.
Review effort: Balanced
Findings: None
What changed in this PR
Updates Electron packaging to remove the vulnerable extract-zip dependency.
Changes:
- Upgrades
@electron/packagerto 20.3.0. - Adapts packager loading for its ESM export.
- Refreshes dependencies and relaxes declaration-file checking.
| File | Description |
|---|---|
package.json |
Bumps the packager dependency. |
script/build.ts |
Dynamically loads the named packager export. |
script/tsconfig.json |
Enables skipLibCheck. |
yarn.lock |
Resolves the new dependency tree without vulnerable extract-zip. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
tidy-dev
marked this pull request as ready for review
September 25, 2026 03:52
tidy-dev
requested review from
babakks and
sergiou87
and removed request for
a team and
babakks
September 25, 2026 03:52
sergiou87
approved these changes
Sep 25, 2026
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #351
Description
Fixes Dependabot alert #351 for
extract-zip <= 2.0.1, which allows arbitrary file writes through symlink archive entries (GHSA-7pqw-9j4j-h8q3 / CVE-2026-19693, CVSS 8.1). The alert is scoped to a development dependency inyarn.lock:extract-zipis used by@electron/packagerduring Desktop’s build and packaging process and is not shipped in the released application. Desktop installations are therefore not vulnerable to this advisory at runtime.There is no patched
extract-ziprelease, so this upgrades the packaging tool from@electron/packager^18.4.4to^20.3.0, which removes the vulnerable dependency in favor of@electron-internal/extract-zip. The packager upgrade is ESM-only, soscript/build.tsnow loads it dynamically while preserving the existing CommonJS build configuration. The packaged app also dereferences symlinks so macOS signing does not reject invalid symlink destinations in the application bundle.This branch has produced a successful GitHub Desktop
3.6.7-test3build, confirming that packaging works as expected with the upgraded packager.Validation:
3.6.7-test3packaged build from this branch on the deployment pipelineScreenshots
Not applicable; this change affects build tooling and packaged artifacts, not the UI.
Release notes
Notes: no-notes