Skip to content

Conversation

@robertjamison
Copy link
Contributor

Fix: Remediate security vulnerabilities in transitive dependencies (#128)

This commit updates the build configuration to mitigate several security vulnerabilities present in transitive dependencies. It replaces the previous compileOnly approach with Gradle's dependency constraints, which provides a more robust method for forcing specific, non-vulnerable versions of these libraries.

  • Dependency Constraints:

    • A constraints block has been added to basic-ads/build.gradle.kts to enforce strict versions for vulnerable transitive dependencies on the androidMain configuration.
  • Vulnerabilities Addressed:

    • okhttp: Patched for CVE-2021-0341.
    • org.bitbucket.b_c:jose4j: Patched for CVE-2024-29371.
    • io.netty: Patched for CVE-2025-67735 and CVE-2025-55163.
    • com.google.protobuf: Patched for CVE-2024-7254.
    • org.jdom:jdom2: Patched for CVE-2021-33813.
    • org.apache.commons:commons-compress: Added and patched for CVE-2024-26308.
  • Build Configuration:

    • The libs.versions.toml file has been updated to centralize the version numbers for these remediated dependencies.

This commit corrects the setup instructions in the README and increments the library version.

*   **Version Bump:**
    *   The library version is updated from `1.1.0-beta02` to `1.1.0-beta03`.

*   **Documentation Fixes:**
    *   Corrected the Gradle plugin aliases in `README.md` to use `libs.plugins.jetbrains.compose` and `libs.plugins.jetbrains.compose.compiler`.
    *   Updated the dependency name in the `README.md` setup guide from `libs.lexilabs.basic.ads` to `libs.basic.ads`.
    *   Updated the Kotlin version badge to `2.3.0`.

*   **Version History:**
    *   The `VERSIONS.md` file has been updated to log the `1.1.0-beta02` and `1.1.0-beta03` releases.
)

This commit updates the build configuration to mitigate several security vulnerabilities present in transitive dependencies. It replaces the previous `compileOnly` approach with Gradle's dependency constraints, which provides a more robust method for forcing specific, non-vulnerable versions of these libraries.

*   **Dependency Constraints:**
    *   A `constraints` block has been added to `basic-ads/build.gradle.kts` to enforce strict versions for vulnerable transitive dependencies on the `androidMain` configuration.

*   **Vulnerabilities Addressed:**
    *   **`okhttp`**: Patched for `CVE-2021-0341`.
    *   **`org.bitbucket.b_c:jose4j`**: Patched for `CVE-2024-29371`.
    *   **`io.netty`**: Patched for `CVE-2025-67735` and `CVE-2025-55163`.
    *   **`com.google.protobuf`**: Patched for `CVE-2024-7254`.
    *   **`org.jdom:jdom2`**: Patched for `CVE-2021-33813`.
    *   **`org.apache.commons:commons-compress`**: Added and patched for `CVE-2024-26308`.

*   **Build Configuration:**
    *   The `libs.versions.toml` file has been updated to centralize the version numbers for these remediated dependencies.
@robertjamison robertjamison merged commit a06c980 into main Jan 12, 2026
4 of 5 checks passed
@robertjamison robertjamison deleted the v1.1.0-beta03 branch January 12, 2026 02:52
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