Skip to content

Solve vulnerabilities bu bumping dependencies versions#288

Merged
TestaDiRapa merged 1 commit intomainfrom
chores/bump-dependencies
Mar 31, 2026
Merged

Solve vulnerabilities bu bumping dependencies versions#288
TestaDiRapa merged 1 commit intomainfrom
chores/bump-dependencies

Conversation

@aduchate
Copy link
Copy Markdown
Contributor

No description provided.

@aduchate aduchate requested review from TestaDiRapa and Copilot March 31, 2026 15:58
@TestaDiRapa TestaDiRapa merged commit 558d06a into main Mar 31, 2026
2 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Gradle version catalog to change dependency versions, aiming to address reported vulnerabilities by moving libraries to newer (and in a few cases older) releases.

Changes:

  • Bumps multiple platform/library versions (Spring Boot/Framework, Jackson, Netty/Reactor Netty, Commons Lang, Gson, Byte Buddy, etc.).
  • Adjusts some dependencies to lower versions (notably Spring Security, Spring Session, and SnakeYAML).
  • Changes Jackson annotations to a separately pinned version instead of using the shared Jackson version reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +2 to +5
springBoot = "3.5.13"
springSecurity = "6.4.5"
springFramework = "6.2.17"
springSession = "3.4.5"
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

The PR title says this change solves vulnerabilities by bumping dependency versions, but springSecurity (6.5.1 → 6.4.5) and springSession (3.5.1 → 3.4.5) are downgrades here. If the intent is to upgrade for CVE fixes, these should likely move forward (or the PR title/description should be updated to reflect the downgrade rationale).

Copilot uses AI. Check for mistakes.
hibernateValidatorAnnotationProcessor = { group = "org.hibernate.validator", name = "hibernate-validator-annotation-processor", version.ref = "hibernateValidator" }
hibernateValidatorCdi = { group = "org.hibernate.validator", name = "hibernate-validator-cdi", version.ref = "hibernateValidator" }
jacksonAnnotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version.ref = "jackson" }
jacksonAnnotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version = "2.21" }
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

jacksonAnnotations is pinned to 2.21 while the rest of Jackson uses version.ref = "jackson" (currently 2.21.2). This breaks the version-alignment pattern used for Jackson modules in this catalog and can lead to mixed Jackson patch versions on the classpath. Prefer using version.ref = "jackson" (or pin 2.21.2 consistently) unless there is a documented compatibility reason to diverge.

Suggested change
jacksonAnnotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version = "2.21" }
jacksonAnnotations = { group = "com.fasterxml.jackson.core", name = "jackson-annotations", version.ref = "jackson" }

Copilot uses AI. Check for mistakes.
Comment on lines 121 to 123
reflections = { group = "org.reflections", name = "reflections", version = "0.9.12" }
snakeYaml = { group = "org.yaml", name = "snakeyaml", version = "2.4" }
snakeYaml = { group = "org.yaml", name = "snakeyaml", version = "2.2" }
springAop = { group = "org.springframework", name = "spring-aop", version.ref = "springFramework" }
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

This change downgrades SnakeYAML (2.4 → 2.2). If this PR’s goal is to address vulnerabilities by upgrading dependencies, this is going in the opposite direction and may reintroduce known issues unless there’s a specific reason to pin to 2.2.

Copilot uses AI. Check for mistakes.
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.

3 participants