Skip to content

fix: require brotli-libs 1.2.1 for CVE-2026-111497 (1.4.x) - #128

Merged
loks0n merged 1 commit into
1.4.xfrom
fix/1.4.x-brotli-1.2.1
Oct 24, 2026
Merged

loks0n merged 1 commit into
1.4.xfrom
fix/1.4.x-brotli-1.2.1

Conversation

@loks0n

@loks0n loks0n commented Oct 24, 2026

Copy link
Copy Markdown
Member

appwrite/base:1.4.5 (which Appwrite 1.9.9 builds on) ships brotli-libs 1.2.0-r1. Brotli 1.2.1 fixes CVE-2026-111497, an out-of-bounds write in the decoder, and it's in Alpine 3.24-stable as 1.2.1-r0 since 2026-10-22. libcurl, Swoole and the PHP brotli extension all link that library. 2.2.7 on main already has 1.2.1 because it was built after the Alpine fix.

This puts a >=1.2.1-r0 floor in the final stage's apk add, so a rebuild can't silently install the old package again, and adds the 1.4.6 changelog entry.

After merge: release 1.4.6, then Appwrite 1.9.10 on it.

🤖 Generated with Claude Code

1.4.5 shipped brotli-libs 1.2.0-r1, which libcurl, Swoole and the
brotli extension link. The floor keeps a cached or older index from
installing the vulnerable decoder again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ghost

ghost commented Oct 24, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The package constraint is correctly quoted for apk and enforces the intended minimum version in the final image.

The 1.4.6 changelog documents the Brotli security update. The final image install now requires brotli-libs 1.2.1-r0 or newer.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 2
File Change
CHANGES.md Adds the 1.4.6 security changelog entry for the Brotli update.
Dockerfile Adds a minimum brotli-libs version constraint to the final image package installation.

Reviewed a370dd5 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@loks0n

loks0n commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Verified locally (--target final, linux/amd64): brotli-libs 1.2.1-r0, curl -V shows brotli/1.2.1, and php --ri swoole shows brotli => E16785409/D16785409 (0x1002001 = 1.2.1).

@loks0n
loks0n merged commit 2e213dc into 1.4.x Oct 24, 2026
7 checks passed
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