Skip to content

chore(deps): bump electron to ^43.0.0 + npm audit fix#121

Merged
den-sq merged 2 commits into
ChengLabResearch:mainfrom
tavateva:chore/electron-42-bump
Jul 7, 2026
Merged

chore(deps): bump electron to ^43.0.0 + npm audit fix#121
den-sq merged 2 commits into
ChengLabResearch:mainfrom
tavateva:chore/electron-42-bump

Conversation

@tavateva

@tavateva tavateva commented Jul 7, 2026

Copy link
Copy Markdown

What

Routine maintenance bumps, no functional change:

  1. electron ^40.1.0^43.0.0 — Chromium 138 → 148. Two commits ahead of what's already reviewed; typecheck + build clean.
  2. npm audit fix — clears 15 advisories reported at HEAD (1 low, 7 moderate, 7 high). Semver-compatible transitive-dependency bumps only; no direct-dependency majors touched. Notable CVEs cleared:

Why now

Electron 40 goes EOL in ~5 months. Electron 43 (current stable, Chromium 148) matches the Chromium version most Linux distros ship as standalone Chrome, gets us a broad batch of security patches, and puts us on a supported line for another year+.

The specific incident that prompted looking at Electron versions today turned out to be a workstation environment leak (__EGL_VENDOR_LIBRARY_DIRS set by a stale Miniconda base env, hijacking glvnd's EGL dispatcher and forcing Mesa selection on an NVIDIA card), not an Electron issue. This PR does not fix or claim to fix that — that was a per-machine misconfiguration and is outside Ouroboros' scope. But the Electron bump is worth doing on its own merits, so keeping it.

Verify

Locally:

  • npm install — clean
  • npm audit — 0 vulnerabilities
  • npm run typecheck — passes both node + web configs
  • npm run build — clean, 2.54s

Not verified here (reviewer checklist):

  • npm run dev opens a working window on a stock Linux dev machine
  • npm run build:linux produces a working AppImage / deb
  • npm run build:mac produces a working notarized/signed app (macOS runners only)
  • npm run build:win produces a working installer (Windows runners only)
  • Plugin loading, IPC, file explorer, viewer, save/load flows unchanged

Not in this diff

  • Any code changes for Electron 41/42/43 deprecations. If Electron 43 flags new warnings against the current codebase, they can be handled as a follow-up rather than expanding this PR.
  • Any direct-dependency major bumps (React 20, Vite 8, etc.) — audit fix is transitive-only.

Package-lock updated to match. Reproducible via rm package-lock.json && npm install.

Bumps Chromium from 138 to 148. Rationale: on some Linux + NVIDIA
setups (Pop!_OS COSMIC + NVIDIA proprietary driver 580.159.03 observed
2026-07-07), Electron 40's Chromium 138 GPU process fails to load
NVIDIA EGL via glvnd and disables all hardware acceleration, breaking
WebGL2 and Neuroglancer. Electron 42 (Chromium 144) exhibits the same
failure. Chromium 148 in standalone Flatpak Chrome and Firefox both
work fine on the same driver stack, so we're matching Chromium 148
in Electron form (release 43.0.0, 2026-06-30).

Command-line workarounds (--disable-gpu-sandbox, --no-sandbox,
--use-gl=angle, --use-angle=gl, --ignore-gpu-blocklist) had no effect
on either version; the libEGL loader failure happens before any of
those flags apply.

Verified locally:
- npm install: clean
- npm run typecheck: passes both node + web configs
- npm run build: clean

Manual UI smoke and packaging tests (build:linux, build:mac, build:win)
not run here; called out for reviewer verification.
@tavateva
tavateva force-pushed the chore/electron-42-bump branch from 367d6a4 to 76823fe Compare July 7, 2026 17:18
@tavateva tavateva changed the title chore(deps): bump electron from ^40.1.0 to ^42.6.0 chore(deps): bump electron from ^40.1.0 to ^43.0.0 Jul 7, 2026
Clears 15 advisories (1 low, 7 moderate, 7 high) reported by
'npm audit' — includes tar path-traversal, vite server.fs.deny bypass,
and launch-editor NTLM hash disclosure. Semver-compatible bumps only;
no direct-dependency major upgrades.
@tavateva tavateva changed the title chore(deps): bump electron from ^40.1.0 to ^43.0.0 chore(deps): bump electron to ^43.0.0 + npm audit fix Jul 7, 2026
@den-sq
den-sq merged commit b27f900 into ChengLabResearch:main Jul 7, 2026
1 check passed
@tavateva
tavateva deleted the chore/electron-42-bump branch July 7, 2026 18:10
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