@@ -69,6 +69,7 @@ val testContainersPostgreSQLVersion = "2.0.5"
6969val testContainersLocalStackVersion = " 1.21.4"
7070val commonCompressVersion = " 1.28.0"
7171val awsSpringVersion = " 4.0.2"
72+ val bcpkixVersion = " 1.84"
7273
7374// Checks
7475val detektVersion = " 1.23.8"
@@ -304,12 +305,26 @@ subprojects {
304305 implementation(" org.springframework.boot:spring-boot-starter-security" )
305306 implementation(
306307 " org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:${springOauthAutoConfigureVersion} "
307- )
308+ ) {
309+ // CVE fixes here:
310+ // bcpkix-jdk15on has several one (at least)
311+ // CVE-2024-34447, CVE-2024-30171, CVE-2024-29857, CVE-2023-33202
312+ // CVE-2023-33201, CVE-2020-15522
313+ // and the version up to date and usable is bcpkix-jdk18on:1.84+
314+ constraints {
315+ implementation(" org.bouncycastle:bcpkix-jdk18on:$bcpkixVersion " )
316+ }
317+ exclude(group = " org.bouncycastle" , module = " bcpkix-jdk15on" )
318+ }
308319 implementation(" org.springframework.security:spring-security-oauth2-jose" )
309320 implementation(" org.springframework.boot:spring-boot-starter-oauth2-resource-server" )
310321 implementation(" org.apache.commons:commons-csv:$commonsCsvVersion " )
311322 implementation(" com.redis.om:redis-om-spring:${redisOmSpringVersion} " ) {
312323 exclude(group = " org.springframework.data" , module = " spring-data-redis" )
324+ // CVE fix here:
325+ // redisvl is not used for the project.
326+ // it brings a lot of deprecated libs (like opennlp-tools,...)
327+ exclude(group = " com.redis" , module = " redisvl" )
313328 }
314329 implementation(" org.springframework.data:spring-data-redis" )
315330 implementation(" org.springframework:spring-jdbc" )
0 commit comments