Skip to content

[Snyk] Security upgrade io.swagger:swagger-inflector from 1.0.14 to 1.0.22 #438

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 Jun 13, 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/java-inflector/pom.xml

Vulnerabilities that will be fixed with an upgrade:

Issue Score Upgrade
medium severity Information Exposure
SNYK-JAVA-COMFASTERXMLJACKSONCORE-10332631
  530   io.swagger:swagger-inflector:
1.0.14 -> 1.0.22
No Path Found Proof of Concept

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:

🦉 Information Exposure

Summary by Sourcery

Update the sample project’s swagger-inflector dependency to 1.0.22 to fix a known security issue

Bug Fixes:

  • Upgrade io.swagger:swagger-inflector to version 1.0.22 to resolve a medium-severity Jackson information exposure vulnerability

Build:

  • Bump the swagger-inflector-version property in the petstore/java-inflector sample’s pom.xml

Copy link

sourcery-ai bot commented Jun 13, 2025

Reviewer's Guide

This PR upgrades the swagger-inflector Maven dependency from 1.0.14 to 1.0.22 in the petstore Java-inflector sample to resolve a Jackson information exposure vulnerability.

Flow Diagram of Snyk's Automated Vulnerability Fix

graph TD
    A["Snyk scans project dependencies in pom.xml"] --> B{"Vulnerability found in<br/>io.swagger:swagger-inflector:1.0.14?"};
    B -->|Yes| C["Identify available fix version: 1.0.22"];
    C --> D["Update pom.xml with new version"];
    D --> E["Create Pull Request with the fix"];
    B -->|No| F["End Process"];
Loading

File-Level Changes

Change Details Files
Bump swagger-inflector version property
  • Updated <swagger-inflector-version> from 1.0.14 to 1.0.22
samples/server/petstore/java-inflector/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
Addedmaven/​com.github.joschi.jackson/​jackson-datatype-threetenbp@​2.15.22510010010080
Addedmaven/​com.fasterxml.jackson.datatype/​jackson-datatype-joda@​2.17.13610089100100
Addedmaven/​com.fasterxml.jackson.datatype/​jackson-datatype-jsr310@​2.17.1361008910050
Addedmaven/​com.fasterxml.jackson.core/​jackson-annotations@​2.17.1361008910070
Addedmaven/​com.fasterxml.jackson.core/​jackson-core@​2.17.1361008910070
Addedmaven/​com.fasterxml.jackson.dataformat/​jackson-dataformat-yaml@​2.4.5361008910050
Addedmaven/​com.google.code.gson/​gson@​2.10.13610089100100
Addedmaven/​com.fasterxml.jackson.core/​jackson-databind@​2.17.1361008910070
Addedmaven/​ch.qos.logback/​logback-classic@​1.2.133610089100100
Addedmaven/​com.fasterxml.jackson.core/​jackson-databind@​2.14.0361008910070
Addedmaven/​com.github.ben-manes.caffeine/​caffeine@​2.9.33610089100100
Addedmaven/​com.beust/​jcommander@​1.723610089100100
Addedmaven/​cglib/​cglib-nodep@​2.2361008910080
Addedmaven/​com.beust/​jcommander@​1.823610089100100
Addedmaven/​com.fasterxml.jackson.core/​jackson-core@​2.12.436998910070
Addedmaven/​ch.qos.logback/​logback-classic@​1.4.143610089100100
Addedmaven/​com.fasterxml.jackson.core/​jackson-databind@​2.15.2361008910070
Addedmaven/​ch.qos.logback/​logback-classic@​1.2.12368589100100
Addedmaven/​ch.qos.logback/​logback-core@​1.2.12367789100100
Addedmaven/​com.fasterxml.jackson.core/​jackson-core@​2.15.2361008910070
Addedmaven/​com.fasterxml.jackson.core/​jackson-annotations@​2.15.2361008910070
Addedmaven/​com.fasterxml.jackson.core/​jackson-databind@​2.13.2.236798910070
Addedmaven/​com.fasterxml.woodstox/​woodstox-core@​6.2.436998910070
Addedmaven/​com.fasterxml.jackson.core/​jackson-annotations@​2.13.43610089100100
Addedmaven/​com.fasterxml.woodstox/​woodstox-core@​6.4.0361008910070
Addedmaven/​ch.qos.logback/​logback-core@​1.4.14369889100100
Addedmaven/​com.fasterxml.jackson.datatype/​jackson-datatype-jsr310@​2.13.5361008910050
Addedmaven/​com.github.javaparser/​javaparser-core@​3.24.93610089100100
See 53 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