CVE-2026-22816: Gradle causes Failure to disable repositories can expose builds to malicious artifacts
When resolving dependencies, Gradle searches repositories in declaration order. If it encounters connection errors, Gradle will disable the repository and fail dependency resolution. This is necessary for both reproducibility and security reasons to prevent dependencies from being resolved from other repositories without warning.
In previous versions of Gradle, some exceptions were not treated as fatal errors and would not cause a repository to be disabled. If a build encountered one of these exceptions, Gradle would continue to the next repository in the list and potentially resolve dependencies from a different repository.
References
- docs.gradle.org/8.14.4/release-notes.html
- docs.gradle.org/9.3.0/release-notes.html
- github.com/advisories/GHSA-w78c-w6vf-rw82
- github.com/gradle/gradle/commit/4f2e3bbee4d0cee307dd97b684f11cfbe711b6f3
- github.com/gradle/gradle/commit/e5707d0d8fce3d768c9c489004700d78eab1773a
- github.com/gradle/gradle/releases/tag/v8.14.4
- github.com/gradle/gradle/releases/tag/v9.3.0
- github.com/gradle/gradle/security/advisories/GHSA-w78c-w6vf-rw82
- nvd.nist.gov/vuln/detail/CVE-2026-22816
Code Behaviors & Features
Detect and mitigate CVE-2026-22816 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →