Skip to content

Upgrade brotli4j to 1.24.0 for CVE-2026-111497 - #903

Merged
ok2c merged 1 commit into
apache:masterfrom
Devdha:security/brotli4j-1.24.0
Oct 24, 2026
Merged

ok2c merged 1 commit into
apache:masterfrom
Devdha:security/brotli4j-1.24.0

Conversation

@Devdha

@Devdha Devdha commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Background

CVE-2026-111497 is an out-of-bounds write in the Google Brotli decoder, fixed in Brotli 1.2.1. HttpClient 5 decompresses Content-Encoding: br responses through the optional brotli4j integration (BrotliDecompressingEntity / InflatingBrotliDataConsumer). The current brotli4j 1.23.0 bundles Brotli 1.2.0, so a malicious or compromised origin can reach the vulnerable decoder.

brotli4j 1.24.0 upgrades the bundled native decoder to Brotli 1.2.1:

Change

  • Bump the brotli4j.version property from 1.23.0 to 1.24.0.

No API or behavior changes.

Testing

./mvnw -pl httpclient5 -am -Dtest="*Brotli*" -DfailIfNoTests=false test

Results:

  • DeflatingBrotliEntityProducerTest: 1 passed
  • InflatingBrotliDataConsumerTest: 4 passed
  • Brotli4jRuntimeTest: 1 passed

Total: 6 tests, 0 failures, 0 errors.

I could not find an existing HTTPCLIENT JIRA for this dependency bump; happy to file one if required before review.

@ok2c
ok2c merged commit 67b0915 into apache:master Oct 24, 2026
10 checks passed
@ok2c

ok2c commented Oct 24, 2026

Copy link
Copy Markdown
Member

Cherry-picked to 5.6.x

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.

2 participants