Skip to content

Commit df89ecf

Browse files
committed
Update dependencies in build.gradle for security fixes and adjust Kotlin version resolution
1 parent 0497fad commit df89ecf

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

‎.idea/misc.xml‎

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/build.gradle‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,21 @@ dependencies {
3939
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4040
implementation 'androidx.lifecycle:lifecycle-livedata:2.7.0'
4141
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.7.0'
42+
43+
// Security fixes for transitive dependencies
44+
// Fix CVE-2022-25647 (Deserialization vulnerability in Gson)
45+
implementation 'com.google.code.gson:gson:2.10.1'
46+
// Fix CVE-2020-29582 (Information Exposure in kotlin-stdlib)
47+
implementation 'org.jetbrains.kotlin:kotlin-stdlib:2.1.0'
48+
}
49+
50+
// Force all kotlin-stdlib versions to 2.1.0 (fixes CVE-2020-29582 from transitive deps like Realm)
51+
configurations.all {
52+
resolutionStrategy {
53+
force 'org.jetbrains.kotlin:kotlin-stdlib:2.1.0'
54+
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.0'
55+
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.0'
56+
}
4257
}
4358

4459
mavenPublishing {

0 commit comments

Comments
 (0)