Skip to content

Bump @electron/packager to 20.3.0 - #22928

Merged
tidy-dev merged 4 commits into
developmentfrom
tidy-dev-fix-dependabot-351
Sep 25, 2026
Merged

tidy-dev merged 4 commits into
developmentfrom
tidy-dev-fix-dependabot-351

Conversation

@tidy-dev

@tidy-dev tidy-dev commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

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 in yarn.lock: extract-zip is used by @electron/packager during 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-zip release, so this upgrades the packaging tool from @electron/packager ^18.4.4 to ^20.3.0, which removes the vulnerable dependency in favor of @electron-internal/extract-zip. The packager upgrade is ESM-only, so script/build.ts now 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-test3 build, confirming that packaging works as expected with the upgraded packager.

Validation:

  • Successful 3.6.7-test3 packaged build from this branch on the deployment pipeline

Screenshots

Not applicable; this change affects build tooling and packaged artifacts, not the UI.

Release notes

Notes: no-notes

…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]>
Copilot AI balanced review requested due to automatic review settings September 24, 2026 20:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/packager to 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 tidy-dev changed the title Bump @electron/packager to 20.3.0 to fix extract-zip vulnerability (CVE-2026-19693) Bump @electron/packager to 20.3.0 Sep 25, 2026
@tidy-dev
tidy-dev marked this pull request as ready for review September 25, 2026 03:52
@tidy-dev
tidy-dev requested a review from a team as a code owner September 25, 2026 03:52
@tidy-dev
tidy-dev requested review from babakks and sergiou87 and removed request for a team and babakks September 25, 2026 03:52
@tidy-dev
tidy-dev merged commit f2686bc into development Sep 25, 2026
45 checks passed
@tidy-dev
tidy-dev deleted the tidy-dev-fix-dependabot-351 branch September 25, 2026 13:54
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.

3 participants