Repository navigation
Bump swap-frontend nginx base to 1.30.6 for CVE-2026-111497 - #229
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the nginx runtime image update.
No open issues 🎉
What changed in this PR
Updates the frontend’s shipped nginx runtime image to address the Brotli vulnerability described in CVE-2026-111497, complementing the earlier Node build-stage update in #228.
Changes:
- Bumps the production base image from
nginx:1.27.2tonginx:1.30.6. - Leaves the build stages and nginx configuration unchanged.
| File | Description |
|---|---|
swap-frontend/docker/Dockerfile |
Updates the nginx runtime base to obtain the reported fixed Brotli package. |
Review effort: Balanced
imclvr
approved these changes
Oct 29, 2026
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.
Why
#228 bumped Node to 22.23.4, but in the frontend image Node only runs in the build stage. The image that ships is
nginx:1.27.2(Debian 12), which still contains the vulnerable Brotli library:libbrotli1 1.0.9-2+b6, pulled in by curl. Nginx itself doesn't use it, but it's in the image and scanners flag it.What changes
swap-frontend/docker/Dockerfile: the runtime stage moves fromnginx:1.27.2tonginx:1.30.6(Debian 13), which shipslibbrotli1 1.1.0-2+deb13u1, a fixed version.Testing
Built the image locally and ran it with
DOMAINandBACKEND_HOSTset:/,/docs/and client-side routes return 200./apireturns 502 because no backend was running.libbrotli1in the image is1.1.0-2+deb13u1.