Skip to content

[Snyk] Fix for 2 vulnerabilities#5249

Open
bogarin wants to merge 1 commit intomasterfrom
snyk-fix-ae11dce7b759f12ba64c1647c81da041
Open

[Snyk] Fix for 2 vulnerabilities#5249
bogarin wants to merge 1 commit intomasterfrom
snyk-fix-ae11dce7b759f12ba64c1647c81da041

Conversation

@bogarin
Copy link
Copy Markdown
Owner

@bogarin bogarin commented Jan 28, 2026

snyk-top-banner

Snyk has created this PR to fix 2 vulnerabilities in the maven dependencies of this project.

Snyk changed the following file(s):

  • pom.xml
  • testing-modules/assertion-libraries/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue Score Upgrade
medium severity XML External Entity (XXE) Injection
SNYK-JAVA-ORGASSERTJ-15102413
  621   org.assertj:assertj-guava:
3.4.0 -> 3.27.7
No Known Exploit
low severity External Initialization of Trusted Variables or Data Stores
SNYK-JAVA-CHQOSLOGBACK-15062482
  376   ch.qos.logback:logback-classic:
1.2.6 -> 1.5.25
ch.qos.logback:logback-core:
1.2.6 -> 1.5.25
No Known Exploit

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.

For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic


Learn how to fix vulnerabilities with free interactive lessons:

🦉 XML External Entity (XXE) Injection

Copilot AI review requested due to automatic review settings January 28, 2026 22:27
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

This PR updates Maven dependencies to fix two security vulnerabilities identified by Snyk: an XML External Entity (XXE) Injection vulnerability in assertj-guava and an External Initialization of Trusted Variables vulnerability in logback. The changes include upgrading assertj-guava from 3.4.0 to 3.27.7 and logback from 1.2.6 to 1.5.25, along with minor XML formatting improvements.

Changes:

  • Upgrade assertj-guava from 3.4.0 to 3.27.7 to fix XXE injection vulnerability (SNYK-JAVA-ORGASSERTJ-15102413)
  • Upgrade logback-classic and logback-core from 1.2.6 to 1.5.25 to fix external initialization vulnerability (SNYK-JAVA-CHQOSLOGBACK-15062482)
  • Update XML formatting for Eclipse m2e lifecycle-mapping configuration (self-closing tags)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pom.xml Updates logback version property to 1.5.25 and improves XML formatting for Eclipse lifecycle-mapping configuration
testing-modules/assertion-libraries/pom.xml Updates assertj-guava version property to 3.27.7

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

Comment thread pom.xml
<!-- logging -->
<org.slf4j.version>1.7.32</org.slf4j.version>
<logback.version>1.2.6</logback.version>
<logback.version>1.5.25</logback.version>
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

Logback 1.5.x requires Java 11 or higher, but this project is configured to use Java 1.8 (see line 1454 where java.version is set to 1.8). Additionally, Logback 1.5.x requires SLF4J 2.0+, but this project is using SLF4J 1.7.32 (see line 1447). This version upgrade will cause build failures and runtime compatibility issues. Consider either:

  1. Upgrading to Logback 1.4.x (which supports Java 8 and SLF4J 1.7.x) to address security vulnerabilities while maintaining compatibility, or
  2. Upgrading the entire project to Java 11+ and SLF4J 2.0+ as part of a larger migration effort
Suggested change
<logback.version>1.5.25</logback.version>
<logback.version>1.4.14</logback.version>

Copilot uses AI. Check for mistakes.
<properties>
<truth.version>0.32</truth.version>
<assertj-guava.version>3.4.0</assertj-guava.version>
<assertj-guava.version>3.27.7</assertj-guava.version>
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

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

AssertJ Guava 3.27.x requires Java 11 or higher, but this project is configured to use Java 1.8 (see line 1454 in the root pom.xml where java.version is set to 1.8). This version upgrade will cause build failures. Consider either:

  1. Upgrading to a version of assertj-guava that supports Java 8 while addressing the XXE vulnerability (if available), or
  2. Upgrading the testing-modules/assertion-libraries module to use Java 11+ separately from the main project

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