Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pins the Docker base image from the floating
node:24-slimtonode: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-slimalready points at 24.22.1, but the publishedghcr.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.ymlwhen a GitHub release is published, so this needs a release (e.g. v0.16.3) after merge before deployments pick it up.Testing
node:24.22.1-slimexists on Docker Hub (pushed 2026-10-21) and reportsNODE_VERSION=24.22.1.engines.node(^22.14 || >=23.6) and the Node-API ≥10 requirement are both satisfied.Generated by Claude Code