Skip to content

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
mainfrom
claude/USPR-13797-bump-spring-boot-4.0.7-webmvc-xss-fix
Open

USPR-13797: bump spring-boot to 4.0.7 to fix spring-webmvc XSS vulnerability#398
midnight-clue[bot] wants to merge 1 commit into
mainfrom
claude/USPR-13797-bump-spring-boot-4.0.7-webmvc-xss-fix

Conversation

@midnight-clue

@midnight-cluemidnight-clueBot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Context & Problem

GitHub Dependabot alert #132 flagged the transitive org.springframework:spring-webmvc dependency (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 emit cssClass, cssErrorClass, and cssStyle attributes 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-boot version in gradle/libs.versions.toml from 4.0.6 to 4.0.7. Spring Boot 4.0.7's dependency-management BOM manages org.springframework:spring-webmvc (and the rest of Spring Framework) to 7.0.8, which contains the fix — confirmed by inspecting the spring-boot-dependencies:4.0.7 POM (spring-framework.version=7.0.8). This is a first-party version catalog bump rather than a resolutionStrategy.eachDependency override (the pattern used elsewhere in root build.gradle for 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-webmvc resolves 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)
  • No regressions from the version bump (./gradlew checkstyleMain checkstyleTest pmdMain pmdTest test)

🔍 Braintrust trace

…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.
@midnight-clue
midnight-clueBot marked this pull request as ready for review July 31, 2026 12:37
@midnight-clue
midnight-clueBot requested a review from a team as a code ownerJuly 31, 2026 12:37
Sign up for freeto 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.

2 participants

@catarina-correia@claude