Skip to content

fix(desktop): bump Electron to 40.9.3 to resolve Dependabot alerts - #6200

Merged
AviPeltz merged 1 commit into
mainfrom
review-dependencies
Aug 5, 2026
Merged

AviPeltz merged 1 commit into
mainfrom
review-dependencies

Conversation

@AviPeltz

@AviPeltz AviPeltz commented Aug 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • bun install — native modules rebuilt successfully against Electron 40.9.3
  • bun run lint:fix — clean, no issues
  • bun run typecheck (apps/desktop) — clean
  • Manual smoke test of the desktop app on a dev build (not run in this session)

Summary by cubic

Upgrade electron from 40.8.5 to 40.9.3 in apps/desktop to patch security vulnerabilities. Resolves 9 Dependabot alerts (#263–#271), including high-severity custom-protocol CORS bypass and context isolation bypass.

Written for commit 895e7d5. Summary will update on new commits.

Review in cubic

Closes 9 open Dependabot alerts (#263-271) including two high-severity
issues: a context isolation bypass and a custom-protocol CORS bypass.
@coderabbitai

coderabbitai Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: e6b8e7e7-50da-4a3c-a6db-bf218f45fda6

📥 Commits

Reviewing files that changed from the base of the PR and between 21db9f5 and 895e7d5.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • apps/desktop/package.json

📝 Walkthrough

Walkthrough

The desktop app updates its Electron development dependency from version 40.8.5 to 40.9.3.

Changes

Desktop Electron Update

Layer / File(s) Summary
Update Electron development dependency
apps/desktop/package.json
The Electron development dependency changes from 40.8.5 to 40.9.3.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: kitenite

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title uses conventional commit format and clearly states the Electron dependency update and its security purpose.
Description check ✅ Passed The description explains the change, security purpose, Dependabot alerts, installation results, and tests, but uses alternate section headings and omits some checklist items.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch review-dependencies

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates the desktop application from Electron 40.8.5 to 40.9.3 to address dependency security alerts.

  • Updates the pinned Electron development dependency.
  • Regenerates the corresponding Bun lockfile resolution and integrity hash.

Confidence Score: 5/5

The PR appears safe to merge, with the manifest and lockfile consistently updated for the Electron patch release.

The dependency declaration, resolved package version, and integrity hash agree, and no concrete changed-code-triggered failure remains.

Important Files Changed

Filename Overview
apps/desktop/package.json Pins Electron 40.9.3 without changing other desktop dependencies or scripts.
bun.lock Consistently updates the desktop workspace dependency and Electron package resolution to 40.9.3.

Reviews (1): Last reviewed commit: "fix(desktop): bump Electron to 40.9.3 to..." | Re-trigger Greptile

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 2 files

Architecture diagram
sequenceDiagram
    participant Dependabot as Dependabot
    participant CI as CI Pipeline
    participant Package as package.json
    participant Bundle as node_modules
    participant Native as Native Modules
    participant Electron as Electron 40.9.3
    participant Main as Main Process
    participant Renderer as Renderer Process
    participant IPC as IPC Bridge

    Note over Dependabot,IPC: Dependency Upgrade Flow

    Dependabot->>Package: Open alerts (#263-#271)
    Package->>Package: Bump electron version

    CI->>Package: bun install
    Package->>Bundle: Resolve electron 40.9.3
    Bundle->>Native: @electron/rebuild native deps
    Native-->>Bundle: Rebuilt successfully

    Note over Bundle,Electron: Runtime Architecture

    Bundle->>Electron: Load 40.9.3 binary
    Electron->>Main: Initialize main process
    Main->>IPC: Create IPC bridge
    IPC->>Renderer: Establish context bridge

    alt Custom Protocol (CORS fix - #270)
        Electron->>Electron: Enforce CORS on custom protocols
        alt supportFetchAPI && not corsEnabled
            Renderer->>IPC: Cross-origin fetch
            IPC-->>Renderer: Blocked by Electron
        end
    end

    alt Context Isolation (#267 fix)
        Electron->>Electron: Strengthen context isolation
        alt Function.prototype.bind hijack
            Renderer->>IPC: Attempt bypass
            IPC-->>Renderer: Isolated context preserved
        end
    end

    Native->>Electron: better-sqlite3, node-pty, @parcel/watcher
    Electron-->>Main: Native modules operational
    Main-->>Renderer: Desktop app ready
Loading

Re-trigger cubic

@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ✅ Neon database branch

Thank you for your contribution! 🎉

@AviPeltz
AviPeltz merged commit 50ff9cf into main Aug 5, 2026
19 checks passed

This branch was previously deployed

1 inactive deployment
preview — 895e7d5f Deployed Aug 5, 2026 by AviPeltz via Deploy Docs #7141
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.

1 participant