Skip to content

ci: upgrade Node to fixed releases for CVE-2026-111497 - #209

Merged
ThomasK33 merged 1 commit into
mainfrom
node-upgrade-cve-2026-111497
Oct 28, 2026
Merged

ThomasK33 merged 1 commit into
mainfrom
node-upgrade-cve-2026-111497

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Remediates Node2Shell (CVE-2026-111497) for ghostty-web, tracked in the "Phase 2 Node upgrades" Notion page.

Changes

  1. .github/workflows/publish.yml: both actions/setup-node steps now pin Node 24.22.1. They used end-of-life Node 20, which never gets the fix.
  2. flake.lock: bumps the nixpkgs input from 2d293cb (2025-11-30) to 3ec6363 (2026-10-23). pkgs.nodejs_22 in the dev shell and in packages.default goes from 22.21.1 (vulnerable) to 22.23.4 (fixed). This also updates other nixpkgs tools, for example bun to 1.4.2 in the nix shell. CI does not use the flake.

ghostty-web is a library and is not deployed. Node only runs in CI to publish to npm, so no redeploy is needed.

Validation

  • bun run fmt && bun run lint && bun run typecheck && bun test && bun run build: pass (372 tests, built with Zig 0.15.2).
  • actionlint .github/workflows/publish.yml: clean.
  • node:24.22.1 container: node -v prints v24.22.1, and npm install -g npm@latest (the publish job's next step) installs npm 12.2.1.
  • nix eval --inputs-from . nixpkgs#nodejs_22.version prints 22.23.4. I built it and node -v printed v22.23.4. devShells.x86_64-linux.default and packages.x86_64-linux.default both evaluate.
  • actions/node-versions has a 24.22.1 entry, so setup-node can resolve the pin.

The publish workflow itself only runs on release, so this PR does not exercise it. The first release after merge will.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high

- Pin actions/setup-node in publish.yml to 24.22.1 (was EOL Node 20).
- Bump the nixpkgs flake input so the dev shell and nix build get
  nodejs_22 22.23.4 (was 22.21.1).

Change-Id: I53a5399896bbc3ccde77ec839f3404bff778d884
Signed-off-by: Thomas Kosiewski <tk@coder.com>
@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-27T08:11:35.359262Z 3cef44d 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.

u007 added a commit to u007/ghostty-web that referenced this pull request Oct 28, 2026
@ThomasK33
ThomasK33 merged commit 640db46 into main Oct 28, 2026
6 checks passed
@ThomasK33
ThomasK33 deleted the node-upgrade-cve-2026-111497 branch October 28, 2026 08:49
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