Skip to content

Commit

Permalink
fix: security warning of log4j 0-day (#1592)
Browse files Browse the repository at this point in the history
* fix: security warning of log4j 0-day

* refactor: log4j version

* feat: add a todo comment

Co-authored-by: guqing <[email protected]>
  • Loading branch information
JohnNiang and guqing authored Dec 12, 2021
1 parent 173350d commit 2b9833c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ configurations {
}
}


bootJar {
manifest {
attributes "Implementation-Title": "Halo Application",
Expand Down Expand Up @@ -97,9 +96,14 @@ ext {
huaweiObsVersion = "3.19.7"
templateInheritanceVersion = "0.4.RELEASE"
jsoupVersion = "1.13.1"
log4jVersion = "2.15.0"
}

dependencies {
// Aligning log4j dependency versions to 2.15.0
implementation enforcedPlatform("org.apache.logging.log4j:log4j-core:$log4jVersion")
implementation enforcedPlatform("org.apache.logging.log4j:log4j-api:$log4jVersion")

implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
implementation "org.springframework.boot:spring-boot-starter-web"
Expand All @@ -114,7 +118,8 @@ dependencies {
implementation "com.aliyun.oss:aliyun-sdk-oss:$aliyunSdkVersion"
implementation "com.baidubce:bce-java-sdk:$baiduSdkVersion"
implementation "com.qcloud:cos_api:$qcloudSdkVersion"
implementation "com.huaweicloud:esdk-obs-java:$huaweiObsVersion"
// TODO Upgrade huaweicloud sdk dependence to fix log4j 0-day vulnerability
implementation("com.huaweicloud:esdk-obs-java:$huaweiObsVersion")
implementation "io.minio:minio:$minioSdkVersion"
implementation "io.springfox:springfox-boot-starter:$swaggerVersion"
implementation "commons-fileupload:commons-fileupload:$commonsFileUploadVersion"
Expand Down

0 comments on commit 2b9833c

Please sign in to comment.