Skip to content

Update bundled Brotli to 1.2.1 (CVE-2026-111497) - #219

Merged
danoli3 merged 1 commit into
masterfrom
fix/brotli-1.2.1
Oct 27, 2026
Merged

danoli3 merged 1 commit into
masterfrom
fix/brotli-1.2.1

Conversation

@danoli3

@danoli3 danoli3 commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

The optional bundled JPEG XL build still links Brotli 1.2.0. Replace it with the pristine upstream 1.2.1 archive, update its SHA-256/provenance and all version tables. The existing Brotli license copy matches the new release byte-for-byte.

Fixes #218. Upstream marks 1.2.1 as a security release: https://github.com/google/brotli/releases/tag/v1.2.1

Validation: macOS AppleClang C++11 static and shared bundled-JPEG-XL builds each pass all 11 CTest targets. The JPEG XL regression also passes against both installed CMake packages with pkg-config disabled, covering lossless RGB/RGBA/16-bit/float roundtrips and lossy/upsampled fixtures. Windows, x86 and Android coverage runs in CI. System libjxl/Brotli installations remain managed by their package provider.

CVE

CVE-2026-111497 is an out-of-bounds write in the Brotli decoder that upstream says permits remote code execution (v1.2.1 release notes). The fix is a single commit, b418fa81 "Detect and report invalid stream earlier", which changes only c/dec/decode.c. No GitHub advisory with more detail was published.

Exposure in FreeImage: brotlidec is linked into bundled libjxl builds. As far as I know, libjxl only runs Brotli for compressed brob metadata boxes and for jbrd JPEG-reconstruction data. PluginJPEGXL.cpp subscribes only to JXL_DEC_BASIC_INFO | JXL_DEC_COLOR_ENCODING | JXL_DEC_FULL_IMAGE, with no box decompression and no JPEG reconstruction. So today's loader probably never feeds file data to the vulnerable decoder. The bump is still warranted: the vulnerable library ships in the build, and any future metadata or JPEG-reconstruction support would reach it.

@danoli3 danoli3 changed the title Update bundled Brotli to 1.2.1 Update bundled Brotli to 1.2.1 (CVE-2026-111497) Oct 27, 2026
@danoli3
danoli3 merged commit 77b5f05 into master Oct 27, 2026
73 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.

Bump Brotli

1 participant