Skip to content

USPR-13806: bump spring-boot to 4.0.7 to fix spring framework dos vulnerability - #399

Open
midnight-clue[bot] wants to merge 1 commit into
mainfrom
claude/USPR-13806-bump-spring-boot-4.0.7
Open

USPR-13806: bump spring-boot to 4.0.7 to fix spring framework dos vulnerability#399
midnight-clue[bot] wants to merge 1 commit into
mainfrom
claude/USPR-13806-bump-spring-boot-4.0.7

Conversation

@midnight-clue

@midnight-clue midnight-clue Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Context & Problem

GitHub Dependabot flagged a HIGH severity Denial of Service vulnerability (GHSA-x23c-287f-qqv5) in Spring Framework's handling of versioned resources in Spring MVC and WebFlux, affecting versions 7.0.0-7.0.7 (Dependabot alerts #119 and #120). The vulnerable org.springframework:spring-webmvc and org.springframework:spring-webflux jars are not declared directly in this repo — they are pulled in transitively via the Spring Boot Gradle plugin's dependency management (spring-boot = "4.0.6" in gradle/libs.versions.toml). See USPR-13806.

Solution

Bumped spring-boot from 4.0.6 to 4.0.7 in gradle/libs.versions.toml. Spring Boot 4.0.7 upgrades its managed Spring Framework version to 7.0.8 (the patched version — see Spring Boot 4.0.7 release notes: "Upgrade to Spring Framework 7.0.8"). This is a single-line, config-only fix: the repo has an existing convention for pinning transitive security fixes via resolutionStrategy.eachDependency overrides in root build.gradle (used for Jackson, Logback, Tomcat, Netty), but that pattern wasn't needed here since Spring Framework's version is fully controlled by the Spring Boot BOM. Confirmed the BOM bump doesn't conflict with any existing resolutionStrategy floors: Spring Boot 4.0.7 also upgrades to Logback 1.5.34 and Tomcat 11.0.22 (both exactly matching the existing floors), and Netty 4.2.15.Final (below the existing 4.2.16.Final floor, but the existing override already forces that up regardless of the BOM value).

Verification

  • org.springframework:spring-webmvc resolves to >= 7.0.8 (./gradlew :spring-boot-starter:spring-boot-starter-web:dependencies --configuration compileClasspath shows org.springframework:spring-webmvc:7.0.8, up from 7.0.7)
  • org.springframework:spring-webflux resolves to >= 7.0.8 (./gradlew :spring-boot-starter:spring-boot-starter-webflux:dependencies --configuration compileClasspath shows org.springframework:spring-webflux:7.0.8, up from 7.0.7)
  • No regressions: ./gradlew checkstyleMain checkstyleTest pmdMain pmdTest test passed (BUILD SUCCESSFUL, 92 tasks)

🔍 Braintrust trace

….8 (GHSA-x23c-287f-qqv5)

Spring Boot 4.0.6 manages Spring Framework 7.0.7, which is vulnerable to a
Denial of Service issue in versioned resource handling in Spring MVC and
WebFlux (GHSA-x23c-287f-qqv5, Dependabot alerts #119 and #120). Spring Boot
4.0.7 upgrades the managed Spring Framework version to the patched 7.0.8.

Co-Authored-By: Catarina Pinheiro Correia <catarina.correia@getyourguide.com>
@midnight-clue
midnight-clue Bot marked this pull request as ready for review July 31, 2026 12:38
@midnight-clue
midnight-clue Bot requested a review from a team as a code owner July 31, 2026 12:38
@gyg-pr-tool
gyg-pr-tool Bot requested a review from catarina-correia July 31, 2026 12:38

@clue-gyg clue-gyg left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approved as trivial change

Single-line version bump in gradle/libs.versions.toml (spring-boot 4.0.6 -> 4.0.7) to patch a known DoS vulnerability; no new dependencies added/removed, well under size limit, matches the version-field-update exception for dependency manifests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants