USPR-13797: bump spring-boot to 4.0.7 to fix spring-webmvc XSS vulnerability - #398
Open
midnight-clue[bot] wants to merge 1 commit into
Open
Conversation
…57g-f97v-vppc) Spring Boot 4.0.6's BOM manages org.springframework:spring-webmvc to 7.0.7, which is vulnerable to GHSA-957g-f97v-vppc (XSS via JSP form tags, CVE-2026-41846). Spring Boot 4.0.7's BOM bumps the managed Spring Framework version to 7.0.8, which contains the fix. No resolutionStrategy override is needed since this is a first-party version catalog bump.
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 alert #132 flagged the transitive
org.springframework:spring-webmvcdependency (currently resolving to 7.0.7) as vulnerable to a moderate Cross-Site Scripting issue via JSP Form Tags (GHSA-957g-f97v-vppc / CVE-2026-41846), where Spring's JSP form tags emitcssClass,cssErrorClass, andcssStyleattributes without HTML escaping. The dependency is pulled in transitively via the Spring Boot Gradle plugin / dependency-management BOM. The patched version is Spring Framework 7.0.8. See USPR-13797.Solution
Bumped the
spring-bootversion ingradle/libs.versions.tomlfrom4.0.6to4.0.7. Spring Boot 4.0.7's dependency-management BOM managesorg.springframework:spring-webmvc(and the rest of Spring Framework) to 7.0.8, which contains the fix — confirmed by inspecting thespring-boot-dependencies:4.0.7POM (spring-framework.version=7.0.8). This is a first-party version catalog bump rather than aresolutionStrategy.eachDependencyoverride (the pattern used elsewhere in rootbuild.gradlefor genuinely transitive third-party CVEs like netty/jackson/logback/tomcat), since Spring Boot's own version is already the single source of truth for the managed Spring Framework version in this repo.Verification
org.springframework:spring-webmvcresolves to >= 7.0.8 (fixes GHSA-957g-f97v-vppc) (verified via./gradlew :spring-boot-starter:spring-boot-starter-web:dependencyInsight --dependency spring-webmvc --configuration testRuntimeClasspath)./gradlew checkstyleMain checkstyleTest pmdMain pmdTest test)🔍 Braintrust trace