Skip to content

build(gradle): bump Spring Boot to 4.1.3 to fix Dependabot alerts - #7

Merged
randomvlad merged 2 commits into
masterfrom
fix/dependabot-alerts
Dec 4, 2026
Merged

randomvlad merged 2 commits into
masterfrom
fix/dependabot-alerts

Conversation

@randomvlad

@randomvlad randomvlad commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Summary

Bumps Spring Boot 4.1.1 → 4.1.3. The patch release's managed versions fix 17 of the 18 open Dependabot alerts on master (3 critical, 10 high, 4 medium):

  • Tomcat 11.0.24 → 11.0.27: #84, #85, #86 (critical; includes the FORM-auth authorization bug, which matters because the app uses form login)
  • Jackson 3 (tools.jackson.core) 3.1.5 → 3.1.8: #89, #91, #93, #96, #98, #100, #102
  • Jackson 2 (com.fasterxml.jackson.core) 2.21.5 → 2.21.8: #90, #92, #94, #95, #97, #99, #101

Not fixed here: #1 (commons-lang3, CVE-2025-48924)

The vulnerable commons-lang3:3.16.0 is only on the build-script classpath: the Spring Boot Gradle plugin pulls it in (buildpack-platform → commons-compress:1.27.1). It doesn't ship in the app jar or the Docker image; the app itself already uses 3.20.0. The flaw is a StackOverflowError on very long input to ClassUtils.getClass, and nothing untrusted reaches it during a build. The alert has been dismissed as "vulnerable code is not actually used" instead of pinning a dependency inside the plugin's classpath.

Alternative considered

Staying on Boot 4.1.1 and overriding tomcat.version, jackson-bom.version and jackson-2-bom.version in ext also resolves the same versions and builds green. I didn't choose it because it adds three overrides that must be removed later and misses the other fixes in the Boot patch release.

Testing

  • ./gradlew build passes (all tests plus the JaCoCo report)
  • Checked the resolved versions with ./gradlew dependencies --configuration testRuntimeClasspath

🤖 Generated with Claude Code

… Dependabot alerts

Spring Boot 4.1.3 manages Tomcat 11.0.27 and Jackson 2.21.8 / 3.1.8, fixing
17 alerts (3 critical Tomcat auth issues, Jackson DoS/validator issues).

commons-lang3 3.16.0 (CVE-2025-48924) still comes in on the build-script
classpath via spring-boot-gradle-plugin → buildpack-platform → commons-compress,
so pin it to 3.20.0 with a buildscript constraint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codacy-production

codacy-production Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (b905d0f) 171 171 100.00%
Head commit (8995b6f) 171 (+0) 171 (+0) 100.00% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#7) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

CVE-2025-48924 only affects the Spring Boot Gradle plugin's build-time
classpath, never the shipped app, so the alert is dismissed instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@randomvlad randomvlad changed the title build(gradle): bump Spring Boot to 4.1.3 and pin commons-lang3 to fix Dependabot alerts build(gradle): bump Spring Boot to 4.1.3 to fix Dependabot alerts Dec 4, 2026

@randomvlad randomvlad left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

lgtm

@randomvlad
randomvlad merged commit 7c07dee into master Dec 4, 2026
13 checks passed
@randomvlad
randomvlad deleted the fix/dependabot-alerts branch December 4, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant