Repository navigation
Update bundled Brotli to 1.2.1 (CVE-2026-111497) - #219
Merged
Merged
Conversation
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.
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 onlyc/dec/decode.c. No GitHub advisory with more detail was published.Exposure in FreeImage:
brotlidecis linked into bundled libjxl builds. As far as I know, libjxl only runs Brotli for compressedbrobmetadata boxes and forjbrdJPEG-reconstruction data.PluginJPEGXL.cppsubscribes only toJXL_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.