Skip to content

fix(docker): pin Node base to 24.22.1 for CVE-2026-111497 (Node2Shell) - #2219

Draft
AwsomeFox wants to merge 1 commit into
mainfrom
claude/fervent-ride-8lutgr
Draft

AwsomeFox wants to merge 1 commit into
mainfrom
claude/fervent-ride-8lutgr

Conversation

@AwsomeFox

Copy link
Copy Markdown
Owner

Summary

Pins the Docker base image from the floating node:24-slim to node:24.22.1-slim, the first Node 24 release that fixes CVE-2026-111497 ("Node2Shell"). That bug is an out-of-bounds write in Node's bundled Brotli decoder, and it can be used for remote code execution against any server that decompresses Brotli data from an attacker. Public proof-of-concept code exists.

Why pin instead of just rebuilding

node:24-slim already points at 24.22.1, but the published ghcr.io/awsomefox/campfire:latest (v0.16.2, built 2026-08-10) was built on an older Node and is vulnerable. Pinning the patch release guarantees the next release build includes the fix, whatever the floating tag resolves to at build time. The trade-off is that future Node security fixes need a manual bump; the Dockerfile comment says so.

To ship the fix

The image is only rebuilt by release.yml when a GitHub release is published, so this needs a release (e.g. v0.16.3) after merge before deployments pick it up.

Testing

  • Confirmed node:24.22.1-slim exists on Docker Hub (pushed 2026-10-21) and reports NODE_VERSION=24.22.1.
  • I couldn't build the image locally (no Docker daemon in my environment), and CI has no Docker build job. The first real build of this change will be the release workflow. It changes only the base tag; engines.node (^22.14 || >=23.6) and the Node-API ≥10 requirement are both satisfied.

Generated by Claude Code

Node2Shell is an out-of-bounds write in the Brotli decoder bundled with
Node.js that can be driven to remote code execution by any server that
decompresses attacker-supplied Brotli data. Node 24.22.1 (released
2026-10-21) is the first 24.x carrying the fix.

The floating `node:24-slim` tag already resolves to 24.22.1, but the
published image (v0.16.2, built 2026-08-10) predates it. Pinning the patch
release makes the next release build provably include the fix instead of
depending on what the tag resolves to at build time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NagQEKHqj7WXprdQNc1SnW

This branch has not been deployed

No deployments
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