Skip to content

🤖 fix: bump Electron to 44.10.0 for CVE-2026-111497 - #7684

Merged
ibetitsmike merged 4 commits into
mainfrom
mike/bump-electron-node2shell
Oct 27, 2026
Merged

ibetitsmike merged 4 commits into
mainfrom
mike/bump-electron-node2shell

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Bumps the desktop app's Electron from 44.9.0 to 44.10.0, the first stable 44.x release whose bundled Node (24.22.1) has the Brotli decoder fix for CVE-2026-111497 ("Node2Shell"). Fixes #7358.

Background

#7359 made the API server refuse compressed request bodies, which closed the inbound path. For outbound requests, v0.32.0 added a guard (#7374, extended to xum run and xum workflow by #7383) that refuses Content-Encoding: br responses when the running Node lacks the fix. The guard cannot reach two clients that decode responses on their own: Vertex ADC through gaxios and node-fetch, and AI SDK URL downloads through provider-utils' nested undici. Electron 44.9.0 bundles Node 24.22.0, which is still affected, so the Electron version is the real control for the desktop app.

On Node 24.22.1, isBrotliResponseGuardNeeded() returns false. The guard turns itself off, and the desktop app decodes Brotli again with the fixed decoder, in every client including those two.

Implementation

  • electron (in optionalDependencies) moves from ^44.9.0 to ^44.10.0. The release is younger than the 7-day minimumReleaseAge floor, so bunfig.toml adds electron to minimumReleaseAgeExcludes, the route AGENTS.md gives for a security fix. Without it, bun 1.4.3 writes the new spec but keeps the old version in bun.lock and exits 0. Follow-up: remove the entry after 2026-11-03, when 44.10.0 is a week old.
  • The lock entry's integrity matches npm view electron@44.10.0 dist.integrity.
  • Same major version, so the module ABI and the N-API native modules (robotjs, @lydell/node-pty; npmRebuild: false) do not change.

Validation

  • ELECTRON_RUN_AS_NODE=1 node_modules/.bin/electron -p process.versions reports Node 24.22.1, Electron 44.10.0 and Chrome 152.0.7977.169.
  • On Electron 44.10.0 as Node, with the compiled main-process modules, the guard stays off: global fetch, the npm registry client and the xum run core services decode a br response, and no proxy agent is composed with the guard. On Node 22.19.0, which is still affected, the same checks refuse the response.
  • Local: make static-check, and xvfb-run make test-e2e on windowLifecycle.spec.ts (2 passed).
  • A dispatched run of this workflow on this head passed E2E (Linux 4 shards and macOS), Build / Linux, Build / macOS (arm64), Nix Build, Integration, Unit, Windows tests and the bug-bash sandbox: https://github.com/coder/xum/actions/runs/40558057166. Its AppImage reports the same versions, boots under Xvfb with an empty root, and loads the renderer.

Risks

Low. This is a minor release inside the 44 line (Chromium 152.0.7977.167 to 152.0.7977.169). Its one feature adds filter options to session.registerPreloadScript, which Xum does not call. Windows packaging runs in the merge queue (Build / Windows) and in the release workflow.

The Nix package does not use the npm binary. It runs nixpkgs' electron_44, which is 44.3.0 (Node 24.20.0) in the pinned flake.lock and 44.9.3 (Node 24.22.0) on nixos-unstable today. Nix builds keep the guard until their nixpkgs ships 44.10.0. A follow-up bumps flake.lock then.

Electron 44.9.3 still bundles Node 24.22.0 (affected by CVE-2026-111497).
This commit only exercises the 44.5.1 -> 44.9.x Chromium/Electron delta in CI
while the 44.x release with Node 24.22.1 is pending.

bun add --optional electron@44.9.3 --minimum-release-age=0 (the bunfig
7-day floor otherwise keeps electron@44.5.1 in bun.lock while writing the
new spec, and exits 0).
…de2shell

# Conflicts:
#	bun.lock
#	bunfig.toml
#	package.json
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T18:16:23.682654Z 2aa969c PR opened
🔒 Security Review ✅ Completed 2026-10-27T18:18:08.789855Z 2aa969c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

🟢 e2e stories (Haiku): 14 passed

22 agent steps · 7 replayed from cache · 15 model calls · 46.2k tokens (24% cached)
Spend: $0.09 of the $1.00 cap (proxy ledger)

All 14 tests in 9 files
Test Agent Time
🟢 chatRestart.e2e.ts · 1 passed 1 step · 1 call 5.7s
🟢 a chat survives a restart of the server 1 step · 1 call 5.7s
🟢 compaction.e2e.ts · 1 passed 1 step · 1 call 4.6s
🟢 /compact replaces the old chat with a summary 1 step · 1 call 4.6s
🟢 pluginTrustRestart.e2e.ts · 1 passed 4 steps · 2 calls 9.8s
🟢 a trusted plugin hook stays trusted after the server restarts 4 steps · 2 calls 9.8s
🟢 settingsRoundTrip.e2e.ts · 1 passed 2 steps · 1 call 9.7s
🟢 a chat survives trips through Settings 2 steps · 1 call 9.7s
🟢 sidebarPerWorkspace.e2e.ts · 1 passed 4 steps · 1 call 5.4s
🟢 a new workspace starts with its right sidebar collapsed while another keeps it open 4 steps · 1 call 5.4s
🟢 smoke.e2e.ts · 1 passed 2 steps · 1 call 3.0s
🟢 the agent opens the playground workspace 2 steps · 1 call 3.0s
🟢 streamErrors.e2e.ts · 1 passed 1 step · 1 call 7.0s
🟢 stream errors show in the chat, and the chat recovers 1 step · 1 call 7.0s
🟢 todoNudge.e2e.ts · 1 passed 1 step · 1 call 2.9s
🟢 the agent finishes open TODO items after the turn-end nudge 1 step · 1 call 2.9s
🟢 touchAlignment.e2e.ts · 6 passed 6 steps · 6 calls 24.5s
🟢 the Settings close button is level with the title on a touch screen 390px wide 1 step · 1 call 5.7s
🟢 the Settings close button is level with the title on a touch screen 768px wide 1 step · 1 call 3.8s
🟢 Backup settings checkboxes are small and level with their labels on a touch phone 1 step · 1 call 4.4s
🟢 the heartbeat checkbox is small and level with its label on a touch phone 1 step · 1 call 3.4s
🟢 a reply's model and time stay on one line on a touch phone 1 step · 1 call 3.7s
🟢 the workspace actions menu stays on the title row on a touch phone 1 step · 1 call 3.4s

e2e 0.20.0 · 1m 17s · web · run artifacts

🟢 e2e Electron stories (Haiku): 3 passed

3 agent steps · 3 model calls · 7.9k tokens (22% cached)
Spend: $0.02 of the $1.00 cap (proxy ledger)

All 3 tests in 3 files
Test Agent Time
🟢 electron/deepLink.e2e.ts · 1 passed 1 step · 1 call 6.8s
🟢 a deep link of a second launch starts a chat in the running app 1 step · 1 call 6.8s
🟢 electron/menuBar.e2e.ts · 1 passed 1 step · 1 call 7.0s
🟢 the workspace menu bar is the desktop title bar 1 step · 1 call 7.0s
🟢 electron/smoke.e2e.ts · 1 passed 1 step · 1 call 6.0s
🟢 Xum Electron opens the playground workspace 1 step · 1 call 6.0s

e2e 0.20.0 · 22.4s · electron · run artifacts

🟢 e2e agent repros (Haiku): no tests selected

Spend: $0.00 of the $1.00 cap (proxy ledger)

e2e 0.20.0 · 6.9s · 2 targets (web, phone) · run artifacts

@ibetitsmike
ibetitsmike added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit e5fa140 Oct 27, 2026
76 of 77 checks passed
@ibetitsmike
ibetitsmike deleted the mike/bump-electron-node2shell branch October 27, 2026 18:41
yermakoffivan pushed a commit to yermakoffivan/mux that referenced this pull request Oct 27, 2026
## Summary

Version bump for the v0.32.1 release. It ships the Electron 44.10.0 bump
(coder#7684), whose bundled Node 24.22.1 has the Brotli decoder fix for
CVE-2026-111497 ("Node2Shell"), and the guard for `xum run` and `xum
workflow` (coder#7383). It also carries every change on main since v0.32.0.
The GitHub Release notes will list the highlights.

## Implementation

Bumped with `node ./scripts/set-package-version.js 0.32.1`, so the root
`package.json` and the legacy `packages/mux-compat` forwarding package
stay version-locked. A stable npm publish uses the `package.json`
version as-is. `src/common/compat/productIdentity.test.ts` passes
locally.

After this PR merges, the GitHub Release `v0.32.1` will be published on
the squash commit. That starts the desktop, Docker (`latest`), VS Code
and npm (`latest`) pipelines.
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.

🤖 Bump Electron to a release that bundles Node 24.22.1 or newer (CVE-2026-111497)

1 participant