Repository navigation
fix(security): apply toolchain security floors to every module - #103
Merged
Merged
Conversation
The floors for AGP's toolchain dependencies were scoped to :android, so :playground kept resolving its own unfloored copy of the Android lint toolchain. The dependency graph Dependabot reads is the union of every module's resolution, so the vulnerable versions stayed in it and the alerts stayed open: bcprov/bcpkix/bcutil 1.80.2 (#52 critical, #53, #19), commons-lang3 3.16.0 (#54) and httpclient 4.5.6 (#60) - all with floors already declared and applied in :android. Move the block into the root build script as a `subprojects` block so every module gets it, and a module added later cannot reintroduce the gap by omission. The root buildscript constraints stay where they are: they cover AGP's own plugin classpath, which a project-level resolutionStrategy cannot reach. Refs formbricks/android dependabot alerts #52, #53, #19, #54, #60
xernobyl
marked this pull request as ready for review
November 24, 2026 13:46
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
The block moved, so "below" and "above" no longer resolve to anything. Name the root `subprojects` block instead of the location. The claim in the javadoc-jar note still holds: AGP resolves that engine on a detached configuration, which `configurations.configureEach` never covers.
xernobyl
enabled auto-merge
November 24, 2026 13:51
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
Moves the toolchain security floors out of
android/build.gradle.ktsinto asubprojectsblock in the root build script, so every module gets them instead of only:android.No version changes:
org.bouncycastleis already floored at 1.85 onmain, which satisfies all three Bouncy Castle advisories.Why
The floors were correct but scoped to one module.
:playgroundalso applies AGP, so it resolves its own copy of AGP's lint toolchain (viacom.android.tools:lint-gradle→sdk-common), and none of the floors applied there.GitHub's dependency graph is the union of every module's resolution, so the vulnerable copies stayed in it and Dependabot kept the alerts open even though the floors were "already there" on
main. From the graph the submission action posted today (2026-11-24):Every floored version is present alongside its unfloored twin. This PR closes that gap for the five alerts below in one change:
Risk
None of these artifacts reaches the published AAR —
releaseRuntimeClasspathcarries none of them; they are AGP, Dokka, ktlint and Kotlin-plugin tooling on the build machine only. The floors only ever raise a version, so an AGP bump that ships something newer still wins.The root
buildscriptconstraints stay where they are: they cover AGP's own plugin classpath, which a project-levelresolutionStrategycannot reach.Verification
:android:lint,:playground:lint,:android:detekt,:playground:detekt,:android:ktlintCheck,:playground:ktlintCheckand both assemble tasks.Dependency Submissionon this branch and checked the submitted graph: nobcprov/bcpkix/bcutil1.80.2, nocommons-lang33.16.0, nohttpclient4.5.6 remain.Not covered here:
com.google.guava:guava33.4.0-jre (alert #61, high) andch.qos.logback:logback-core1.3.16 (alerts #62–#64, low) have no floor at all. Separate advisories, separate change — adding them here would mix a logback 1.3 → 1.5 jump against ktlint into a critical-SLA fix.