Skip to content

Commit 763760e

Browse files
midnight-clue[bot]claudecatarina-correia
authored
fix(deps): bump org.apache.logging.log4j minimum version to 2.25.5 (GHSA-qv9r-c865-cp47) (#405)
Force log4j-api and log4j-core to >= 2.25.5 to resolve Dependabot alert #133. Adds resolutionStrategy override in root build.gradle and ext[] lockstep in both Spring Boot example modules to account for BOM re-assertion. Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Catarina Pinheiro Correia <catarina.correia@getyourguide.com>
1 parent b947a1d commit 763760e

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎build.gradle‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ subprojects {
6363
useVersion('7.0.8')
6464
because('GHSA-659m-px2c-25wj: Denial of Service in spring-core via AntPathMatcher, fixed in 7.0.8')
6565
}
66+
if (requested.group == 'org.apache.logging.log4j'
67+
&& requested.version != null && requested.version < '2.25.5') {
68+
useVersion('2.25.5')
69+
because('GHSA-qv9r-c865-cp47: improper encoding of non-finite floating-point values during MapMessage JSON serialization, fixed in 2.25.5')
70+
}
6671
}
6772
}
6873

‎examples/example-spring-boot-starter-web/build.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
ext['jackson-bom.version'] = '3.1.4'
99
ext['jackson-2-bom.version'] = '2.21.5'
1010
ext['logback.version'] = '1.5.34'
11+
ext['log4j2.version'] = '2.25.5'
1112
ext['netty.version'] = '4.2.17.Final'
1213
ext['tomcat.version'] = '11.0.22'
1314
ext['spring-framework.version'] = '7.0.8'

‎examples/example-spring-boot-starter-webflux/build.gradle‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ plugins {
88
ext['jackson-bom.version'] = '3.1.4'
99
ext['jackson-2-bom.version'] = '2.21.5'
1010
ext['logback.version'] = '1.5.34'
11+
ext['log4j2.version'] = '2.25.5'
1112
ext['netty.version'] = '4.2.17.Final'
1213
ext['tomcat.version'] = '11.0.22'
1314
ext['spring-framework.version'] = '7.0.8'

0 commit comments

Comments
 (0)