Skip to content

Pin bouncycastle 1.84 in kotlinBouncyCastleConfiguration#7453

Merged
Jenson3210 merged 1 commit intomainfrom
bc-1.84-override
Apr 22, 2026
Merged

Pin bouncycastle 1.84 in kotlinBouncyCastleConfiguration#7453
Jenson3210 merged 1 commit intomainfrom
bc-1.84-override

Conversation

@Jenson3210
Copy link
Copy Markdown
Contributor

@Jenson3210 Jenson3210 commented Apr 22, 2026

Summary

The Kotlin Gradle plugin creates an internal kotlinBouncyCastleConfiguration used for library publishing validation, which resolves:

  • org.bouncycastle:bcpg-jdk18on:1.80
  • org.bouncycastle:bcpkix-jdk18on:1.80
  • org.bouncycastle:bcprov-jdk18on:1.80

These versions are flagged for four CVEs, all patched in 1.84:

The configuration is not used at compile time and the jars are not shipped. This override keeps the SOC2 dependency-check report clean.

Test plan

  • ./gradlew :rewrite-kotlin:dependencies --configuration kotlinBouncyCastleConfiguration reports 1.80 -> 1.84 on all three BC artifacts locally.

The Kotlin Gradle plugin resolves org.bouncycastle:bcpg-jdk18on,
bcpkix-jdk18on, and bcprov-jdk18on at version 1.80 into an internal
configuration used for library publishing validation. Those versions
are flagged for CVE-2026-3505, CVE-2026-5598, CVE-2026-5588, and
CVE-2026-0636, all patched in 1.84.

The configuration is not used at runtime and the jars are not shipped,
but overriding the version removes the SOC2 scan noise.
@github-project-automation github-project-automation Bot moved this from In Progress to Ready to Review in OpenRewrite Apr 22, 2026
@Jenson3210 Jenson3210 merged commit 4cbcac1 into main Apr 22, 2026
1 check passed
@Jenson3210 Jenson3210 deleted the bc-1.84-override branch April 22, 2026 13:38
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants