Upgrade kotlin-reflect from 1.6.10 to 2.2.0#6984
Merged
Conversation
kotlin-compiler-embeddable declares a transitive dependency on kotlin-reflect 1.6.10, which is flagged for CVE-2020-29582 (insecure temp file permissions). Adding an explicit kotlin-reflect dependency at the same version as the rest of the Kotlin dependencies (2.2.0) causes Gradle's conflict resolution to select the newer version. This resolves the vulnerability across all 47 downstream recipe repos that transitively depend on rewrite-kotlin. See moderneinc/dependency-vulnerability-reports#1010
Jenson3210
approved these changes
Mar 14, 2026
Contributor
Jenson3210
left a comment
There was a problem hiding this comment.
I have to say I do not know the impact of bumping partial kotlin versions compatibility-wise. We have to keep this change in mind for future potential kotlin related failures?
Member
Author
|
We'd recently already bumped our Kotlin version to 2.2.0; it looks like kotlin-reflect was left behind, but best aligned now |
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.
Summary
kotlin-compiler-embeddabledeclares a transitive dependency onkotlin-reflect:1.6.10, which is flagged for CVE-2020-29582 (insecure temp file permissions increateTempDir/createTempFile)kotlin-reflectdependency at2.2.0(matching the existingkotlinVersion) so Gradle's conflict resolution selects the newer versionrewrite-kotlinVerification
./gradlew :rewrite-kotlin:dependencies --configuration runtimeClasspathconfirmskotlin-reflect:1.6.10 -> 2.2.0./gradlew :rewrite-kotlin:assemblecompiles cleanlyRef: moderneinc/dependency-vulnerability-reports#1010