issue_863: removed some critical vulnerable dependencies

This commit is contained in:
TheSilentCoder 2024-11-26 19:08:04 -05:00
parent 8008c4df74
commit bc25d6a149
4 changed files with 29 additions and 6 deletions

View File

@ -33,9 +33,16 @@ dependencies {
implementation libs.log4j.api
implementation libs.log4j.core
implementation libs.minimal.json
implementation libs.pci
// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient
implementation libs.protobuf.java
implementation libs.spring.data.jpa.datatables
implementation libs.spring.boot.starter.data.jpa
implementation libs.spring.retry
implementation libs.spring.boot.starter.web

View File

@ -49,7 +49,15 @@ dependencies {
implementation libs.jakarta.xml
implementation libs.log4j.spring.boot
implementation libs.mariadb.java.client
implementation libs.pci
// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient
implementation libs.spring.boot.starter.web
implementation libs.spring.boot.starter.validation
implementation libs.spring.boot.starter.data.jpa

View File

@ -29,7 +29,15 @@ dependencies {
implementation libs.log4j.core
implementation libs.log4j.api
implementation libs.minimal.json
implementation libs.pci
// pull the pci dependency and ...
implementation(libs.pci) {
// replace the default apache http client transitive dependency
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// with the non-vulnerable version of the apache http client dependency
implementation libs.apacheHttpClient
implementation libs.slf4j.simple
compileOnly libs.lombok

View File

@ -1,4 +1,5 @@
[versions]
apacheHttpClientVersion = "4.5.14"
bouncyCastleVersion = "1.79"
commonsCodecVersion = "1.17.1"
commonsFileUploadVersion = "1.5"
@ -22,7 +23,6 @@ ospackageVersion = "11.2.0"
pciVersion = "0.3"
protobufJavaVersion = "4.28.3"
springBootVersion = "3.0.1"
springDataJpaDatatablesVersion = "6.0.1"
springRetryVersion = "2.0.0"
testngVersion = "7.10.2"
tomcatVersion = "10.1.33"
@ -38,6 +38,7 @@ springTestVersion = "6.0.8"
spotBugAnnotationVersion = "4.8.6"
[libraries]
apacheHttpClient = { module = "org.apache.httpcomponents:httpclient", version.ref = "apacheHttpClientVersion" }
bouncycastle = { module = "org.bouncycastle:bcmail-jdk15to18", version.ref = "bouncyCastleVersion" }
commons-codec = { module = "commons-codec:commons-codec", version.ref = "commonsCodecVersion" }
commons-fileupload = { module = "commons-fileupload:commons-fileupload", version.ref = "commonsFileUploadVersion" }
@ -69,7 +70,6 @@ spring-boot-starter-log4j2 = { module = "org.springframework.boot:spring-boot-st
spring-boot-starter-tomcat = { module = "org.springframework.boot:spring-boot-starter-tomcat", version.ref = "springBootVersion" }
spring-boot-starter-validation = { module = "org.springframework.boot:spring-boot-starter-validation", version.ref = "springBootVersion" }
spring-boot-starter-web = { module = "org.springframework.boot:spring-boot-starter-web", version.ref = "springBootVersion" }
spring-data-jpa-datatables = { module = "com.github.darrachequesne:spring-data-jpa-datatables", version.ref = "springDataJpaDatatablesVersion" }
spring-retry = { module = "org.springframework.retry:spring-retry", version.ref = "springRetryVersion" }
tomcat-embed-jasper = { module = "org.apache.tomcat.embed:tomcat-embed-jasper", version.ref = "tomcatVersion" }
testng = { module = "org.testng:testng", version.ref = "testngVersion" }