Skip to content

Commit 43ecbfa

Browse files
midnight-clue[bot]claudecatarina-correia
authored
fix(deps): pin org.springframework:spring-core minimum version to 7.0.8 (GHSA-659m-px2c-25wj) (#401)
- Add spring-core 7.0.8 resolution strategy to root build.gradle - Override spring-framework.version in example subprojects Fixes Dependabot alert #129 (GHSA-659m-px2c-25wj): Denial of Service in spring-core via AntPathMatcher vulnerability affecting versions 7.0.0 through 7.0.7. Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Catarina Correia <catarina.correia@getyourguide.com>
1 parent 0579f96 commit 43ecbfa

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
@@ -58,6 +58,11 @@ subprojects {
5858
'GHSA-mvh2-crg5-v77c: multiple Netty vulnerabilities, including SPDY zlib header block continues decoded expansion ' +
5959
'after maxHeaderSize truncation, fixed in 4.2.16.Final')
6060
}
61+
if (requested.group == 'org.springframework' && requested.name == 'spring-core'
62+
&& requested.version != null && requested.version < '7.0.8') {
63+
useVersion('7.0.8')
64+
because('GHSA-659m-px2c-25wj: Denial of Service in spring-core via AntPathMatcher, fixed in 7.0.8')
65+
}
6166
}
6267
}
6368

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ext['jackson-2-bom.version'] = '2.21.5'
1010
ext['logback.version'] = '1.5.34'
1111
ext['netty.version'] = '4.2.16.Final'
1212
ext['tomcat.version'] = '11.0.22'
13+
ext['spring-framework.version'] = '7.0.8'
1314

1415
dependencies {
1516
implementation project(':examples:examples-common')

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ext['jackson-2-bom.version'] = '2.21.5'
1010
ext['logback.version'] = '1.5.34'
1111
ext['netty.version'] = '4.2.16.Final'
1212
ext['tomcat.version'] = '11.0.22'
13+
ext['spring-framework.version'] = '7.0.8'
1314

1415
dependencies {
1516
implementation project(':examples:examples-common')

0 commit comments

Comments
 (0)