Repository navigation
fix(security): floor guava at 33.7.2 for the build toolchain - #104
Merged
Merged
Conversation
GHSA-xxph-c9ww-hj94 covers guava <= 33.7.1 (uncontrolled memory allocation in CompactHashMap/CompactHashSet/MapMakerInternalMap deserialization). AGP 9.4.1 resolves 33.4.0-jre through com.android.tools:sdk-common on both the root buildscript classpath and each module's lint configuration, so it needs a floor in both places - the same split as Bouncy Castle. Per-module rather than group-wide: com.google.guava also holds failureaccess and listenablefuture, which must not be raised to 33.7.2. Refs formbricks/android dependabot alert #61
Review findings, all in comments: - failureaccess is 1.0.3 and listenablefuture resolves at 1.0 and 9999.0-empty, so "pinned at 1.0" was wrong. State the real reason a group floor breaks: it would ask Central for failureaccess 1.0.3 and androidx's listenablefuture 1.0 at 33.7.2-jre, which do not exist. - The lint tool is not on the buildscript classpath; guava arrives there from sdk-common and bundletool. Lint is the project-configuration path. - Add guava to the top-of-file inventory, which tracks what AGP drags in.
|
xernobyl
marked this pull request as ready for review
November 24, 2026 14:34
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
mattinannt
approved these changes
Nov 24, 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.



What
Floors
com.google.guava:guavaat33.7.2-jre, the first patched version for GHSA-xxph-c9ww-hj94 (alert #61, high).Applied in both places the AGP toolchain resolves guava, mirroring what Bouncy Castle already needs:
buildscriptconstraints — AGP's own plugin classpath, wherecom.android.tools:sdk-commonbrings guava in.subprojectsfloor block — every module's lint configuration, viacom.android.tools.lint.Deliberately a per-module floor rather than a group-wide one:
com.google.guavaalso holdsfailureaccessandlistenablefuture, which a group floor would try to drag to 33.7.2.Why 33.7.2 and not latest
The advisory covers
>= 4.0, <= 33.7.1;33.7.2-jreis the first patched release. The floors only ever raise, so an AGP bump that ships something newer still wins. (Latest on Maven Central is 33.8.0-jre if we want to go further.)Verified graph delta vs
mainFrom the
Dependency Submissionrun on this branch, compared with the one onmain(cc49c20):failureaccess,error_prone_annotationsandj2objc-annotationsare guava's own declared dependencies and move with it.Two changes are worth naming:
checker-qualmoves 3.43.0 → 2.5.8. Guava 33.7 no longer depends on it (it moved tojspecify), so the 3.43.0 that previously won by conflict resolution is gone andorg.tensorflow:tensorflow-lite-metadata:0.2.0(AGP's UTP) now resolves the 2.5.8 it actually asks for.checker-qualis a compile-time qualifier-annotation library; the version that surfaces is the one tensorflow-lite-metadata was built against.lintandbuildin CI exercise this toolchain.jspecify1.0.1 is new, declared by guava 33.7.2 in place of JSR-305/checker-qual.Risk
Build toolchain only — guava is not a declared SDK dependency, so the published AAR and POM are untouched, as is the playground app's runtime graph. Guava stays within the 33.x line with its usual binary-compatibility guarantee.
Verification
Dependency Submissionon this branch: single33.7.2-jre, no other guava version anywhere in the graph. ✔lint(:android:lint+:playground:lint),build,format,api-check,package-check, unit tests and the Espresso golden journey.Remaining after this
ch.qos.logback:logback-core1.3.16 (alerts #62–#64, low), pulled byktlint-cli1.8.0. Fixing it means a 1.3 → 1.5 jump against ktlint, so it gets its own change.