USPR-13799: pin org.springframework:spring-core minimum version to 7.0.8 (GHSA-659m-px2c-25wj) - #401
Merged
catarina-correia merged 1 commit intoJul 31, 2026
Conversation
….8 (GHSA-659m-px2c-25wj) - 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: Catarina Correia <catarina.correia@getyourguide.com>
catarina-correia
approved these changes
Jul 31, 2026
catarina-correia
deleted the
claude/USPR-13799-spring-core-7.0.8-security-fix
branch
July 31, 2026 12:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context & Problem
GitHub Dependabot flagged a low-severity Denial of Service vulnerability (GHSA-659m-px2c-25wj) in
org.springframework:spring-coreversions 7.0.0-7.0.7 (Dependabot alert #129). It's pulled intransitively via Spring Boot 4.0.6 (
spring-boot = "4.0.6"ingradle/libs.versions.toml), whosedependency-management BOM pins
spring-framework.versionto7.0.7. The fix is available inspring-core 7.0.8.
USPR-13799
Solution
Added a
resolutionStrategy.eachDependencyoverride fororg.springframework:spring-core >= 7.0.8in the root
build.gradle's existing security-pin block, following the sameuseVersion()+because()pattern already used there fortools.jackson.core,jackson-databind,logback,tomcat-embed-core, andio.netty.That alone was not sufficient for the two example modules (
examples/example-spring-boot-starter-weband
examples/example-spring-boot-starter-webflux), because they apply thespring-dependency-managementGradle plugin, whose BOM-managedspring-framework.versionpropertytakes precedence over
resolutionStrategy.eachDependencyin those subprojects — the same precedencebehavior already handled for netty/jackson/logback/tomcat via their own
ext['<property>.version']overrides in those files. Added
ext['spring-framework.version'] = '7.0.8'to both examplebuild.gradle files to match.
Went with a targeted resolutionStrategy/ext pin rather than bumping the whole Spring Boot version,
since that isn't necessary for this narrow low-severity fix and could introduce unrelated changes.
Verification
org.springframework:spring-coreresolves to7.0.8inspring-boot-starter/spring-boot-starter-webflux(./gradlew :spring-boot-starter:spring-boot-starter-webflux:dependencies --configuration runtimeClasspath)org.springframework:spring-coreresolves7.0.7 -> 7.0.8inexamples/example-spring-boot-starter-web(./gradlew :examples:example-spring-boot-starter-web:dependencies --configuration runtimeClasspath)org.springframework:spring-coreresolves7.0.7 -> 7.0.8inexamples/example-spring-boot-starter-webflux(./gradlew :examples:example-spring-boot-starter-webflux:dependencies --configuration runtimeClasspath)main./gradlew checkstyleMain checkstyleTest pmdMain pmdTest testpasses🔍 Braintrust trace