USPR-13805: bump spring-boot to 4.0.7 to patch spring-webmvc/spring-webflux path traversal (GHSA-72pg-x5f8-j25j) - #397
Open
midnight-clue[bot] wants to merge 1 commit into
Conversation
…-72pg-x5f8-j25j) Resolves Dependabot alerts #121 (spring-webmvc) and #122 (spring-webflux): both are pulled in transitively via the Spring Boot BOM, so bumping the BOM to the earliest 4.0.x patch release with a managed Spring Framework >= 7.0.8 resolves both alerts without needing an explicit version override. Co-Authored-By: Catarina Correia <catarina.correia@getyourguide.com>
clue-gyg
approved these changes
Jul 31, 2026
clue-gyg
left a comment
There was a problem hiding this comment.
✅ Auto-approved as trivial change
Tiny 3-line change in gradle/libs.versions.toml that only bumps the spring-boot version pin from 4.0.6 to 4.0.7 (plus an explanatory comment) to patch a known CVE (GHSA-72pg-x5f8-j25j); no new dependencies added or removed, well under the 50-line limit, and qualifies as a version-only dependency manifest update.
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
Two Dependabot alerts (#121 for
spring-webmvc, #122 forspring-webflux) flagged amoderate-severity path traversal vulnerability, GHSA-72pg-x5f8-j25j, affecting Spring
Framework versions >= 7.0.0 and <= 7.0.7. Neither dependency is declared with an explicit
version in this repo — both are pulled in transitively via the Spring Boot BOM
(
org.springframework.boot:spring-boot-dependencies), applied as a platform viaSpringBootPlugin.BOM_COORDINATESin thespring-boot-starter-webandspring-boot-starter-webfluxmodules (and examples). The BOM version is controlled by thesingle
spring-bootentry ingradle/libs.versions.toml, previously pinned to4.0.6.USPR-13805
Solution
Bumped
spring-bootingradle/libs.versions.tomlfrom4.0.6to4.0.7— the earliestSpring Boot 4.0.x patch release whose managed Spring Framework version is >= 7.0.8 (confirmed
via Spring Boot's official release notes: 4.0.7 upgrades to Spring Framework 7.0.8). This is
the preferred fix per the ticket, since it resolves the vulnerability at the BOM level rather
than requiring an explicit
spring-webmvc/spring-webfluxversion override in every consumingmodule.
No changes were needed to the example modules'
ext[...]overrides(
jackson-bom.version,jackson-2-bom.version,logback.version,netty.version,tomcat.version) — Spring Boot 4.0.7 manages Jackson Bom 3.1.4, Logback 1.5.34, and Tomcat11.0.22, all already matching the existing pins, and its managed Netty (4.2.15.Final) is still
below the repo's existing 4.2.16.Final floor (both the example
ext['netty.version']overrideand the root
build.gradleresolutionStrategyblock), so that floor continues to win andNetty resolution is unaffected by this change.
Verification
org.springframework:spring-webmvcresolves to >= 7.0.8 (GHSA-72pg-x5f8-j25j patched)(verified:
./gradlew :spring-boot-starter:spring-boot-starter-web:dependencies --configuration testCompileClasspathand:examples:example-spring-boot-starter-web:dependencies --configuration compileClasspathboth showorg.springframework:spring-webmvc:7.0.8)org.springframework:spring-webfluxresolves to >= 7.0.8 (GHSA-72pg-x5f8-j25j patched)(verified:
./gradlew :spring-boot-starter:spring-boot-starter-webflux:dependencies --configuration testCompileClasspathand:examples:example-spring-boot-starter-webflux:dependencies --configuration compileClasspathboth showorg.springframework:spring-webflux:7.0.8)./gradlew checkstyleMain checkstyleTest pmdMain pmdTest testall pass(BUILD SUCCESSFUL, 92 tasks, no flaky test failures encountered)
🔍 Braintrust trace