Skip to content

[Snyk] Fix for 1 vulnerabilities #498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

officialmofabs
Copy link

@officialmofabs officialmofabs commented Jul 15, 2025

snyk-top-banner

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

Snyk changed the following file(s):

  • samples/server/petstore/jaxrs-resteasy/eap-java8/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue Score Upgrade
high severity Stack-based Buffer Overflow
SNYK-JAVA-COMFASTERXMLJACKSONCORE-10500754
  635   com.fasterxml.jackson.datatype:jackson-datatype-jsr310:
2.9.9 -> 2.15.0
io.swagger:swagger-jaxrs:
1.5.18 -> 1.6.12
org.jboss.resteasy:resteasy-jackson2-provider:
3.0.11.Final -> 3.0.21.Final
No Path Found 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:

🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

Summary by Sourcery

Upgrade Maven dependencies in the petstore JAX-RS RESTEasy EAP Java8 sample to address a high-severity Jackson buffer overflow vulnerability

Bug Fixes:

  • Upgrade jackson-datatype-jsr310 from 2.9.9 to 2.15.0 to remediate a stack-based buffer overflow vulnerability

Build:

  • Update swagger-jaxrs to 1.6.12 and resteasy-jackson2-provider to 3.0.21.Final

Copy link

sourcery-ai bot commented Jul 15, 2025

Reviewer's Guide

Upgrade Maven dependencies in the Petstore sample to resolve a high-severity SNYK-JAVA-COMFASTERXMLJACKSONCORE stack-based buffer overflow by bumping jackson-datatype-jsr310, swagger-jaxrs, and RESTEasy Jackson provider versions in the POM.

Class diagram for upgraded dependency versions in POM

classDiagram
    class POM {
        +string project.build.sourceEncoding
        +string swagger-core-version
        +string jetty-version
        +string resteasy-version
        +string slf4j-version
        +string junit-version
        +string servlet-api-version
        +Dependency[] dependencies
    }
    class Dependency {
        +string groupId
        +string artifactId
        +string version
    }
    POM --> Dependency
    %% Highlight upgraded dependencies
    class Dependency_jackson_datatype_jsr310 {
        +groupId = "com.fasterxml.jackson.datatype"
        +artifactId = "jackson-datatype-jsr310"
        +version = "2.15.0"  %% upgraded from 2.9.9
    }
    class Dependency_swagger_jaxrs {
        +groupId = "io.swagger"
        +artifactId = "swagger-jaxrs"
        +version = "1.6.12"  %% upgraded from 1.5.18
    }
    class Dependency_resteasy_jackson2_provider {
        +groupId = "org.jboss.resteasy"
        +artifactId = "resteasy-jackson2-provider"
        +version = "3.0.21.Final"  %% upgraded from 3.0.11.Final
    }
    POM --> Dependency_jackson_datatype_jsr310
    POM --> Dependency_swagger_jaxrs
    POM --> Dependency_resteasy_jackson2_provider
Loading

File-Level Changes

Change Details Files
Bump jackson-datatype-jsr310 dependency to a secure release
  • Change version from 2.9.9 to 2.15.0
samples/server/petstore/jaxrs-resteasy/eap-java8/pom.xml
Update Swagger JAX-RS integration to latest version
  • Set swagger-core-version from 1.5.18 to 1.6.12
samples/server/petstore/jaxrs-resteasy/eap-java8/pom.xml
Upgrade RESTEasy Jackson provider to patch overflow
  • Increase resteasy-version from 3.0.11.Final to 3.0.21.Final
samples/server/petstore/jaxrs-resteasy/eap-java8/pom.xml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedmaven/​commons-io/​commons-io@​2.5 ⏵ 2.16.132 -8100 +188910080
Addedmaven/​org.apache.maven/​maven-core@​3.9.6361008910080
Addedmaven/​com.fasterxml.jackson.datatype/​jackson-datatype-guava@​2.17.1361008910050
Addedmaven/​org.junit.support/​testng-engine@​1.0.5361008910070
Addedmaven/​com.tngtech.archunit/​archunit@​1.3.03610089100100
Addedmaven/​org.junit.jupiter/​junit-jupiter-api@​5.10.2361008910070
Addedmaven/​org.hamcrest/​hamcrest@​2.23610089100100
Addedmaven/​org.codehaus.janino/​janino@​3.1.93610089100100
Addedmaven/​net.bytebuddy/​byte-buddy-agent@​1.12.193610089100100
Addedmaven/​org.codehaus.plexus/​plexus-classworlds@​2.7.03610089100100
Addedmaven/​cglib/​cglib-nodep@​2.2361008910080
Addedmaven/​org.junit.platform/​junit-platform-commons@​1.10.2361008910070
Addedmaven/​com.beust/​jcommander@​1.823610089100100
Addedmaven/​com.googlecode.lambdaj/​lambdaj@​2.3.33610089100100
Addedmaven/​org.apache.commons/​commons-compress@​1.23.0369789100100
Addedmaven/​net.bytebuddy/​byte-buddy@​1.12.193610089100100
Addedmaven/​org.objenesis/​objenesis@​1.2361008910080
Addedmaven/​com.google.inject/​guice@​5.1.0361008910080
Addedmaven/​io.airlift/​airline@​0.93610089100100
Addedmaven/​org.mockito/​mockito-core@​4.10.03610089100100
Addedmaven/​com.github.javaparser/​javaparser-core@​3.24.93610089100100
Addedmaven/​org.eclipse.sisu/​org.eclipse.sisu.inject@​0.9.0.M23610089100100
Addedmaven/​org.eclipse.sisu/​org.eclipse.sisu.plexus@​0.9.0.M23610089100100
Addedmaven/​org.apache.maven.resolver/​maven-resolver-impl@​1.9.18361008910080
Updatedmaven/​ch.qos.logback/​logback-classic@​1.1.11 ⏵ 1.2.1336100 +7589100100 +10
Updatedmaven/​junit/​junit@​4.12 ⏵ 4.13.236100 +28910090
Updatedmaven/​org.apache.commons/​commons-lang3@​3.6 ⏵ 3.12.036998910080
Updatedmaven/​org.codehaus.plexus/​plexus-utils@​3.0.24 ⏵ 3.5.1361008910080
Updatedmaven/​com.google.guava/​guava@​13.0.1 ⏵ 26.0-jre3698 +289100100
Updatedmaven/​com.google.guava/​guava@​13.0.1 ⏵ 32.0.1-jre36100 +489100100
Updatedmaven/​com.google.guava/​guava@​13.0.1 ⏵ 32.1.3-jre36100 +489100100
Addedmaven/​org.apache.maven.shared/​maven-shared-utils@​3.3.4391008910080
See 56 more rows in the dashboard

View full report

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.

2 participants