Skip to content

Conversation

@bwappsec
Copy link

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/client/petstore/java/retrofit2rx3/pom.xml

Merge Risk: High

This major upgrade to Retrofit 3.0 introduces significant changes, establishing it as a Kotlin-first library with native support for coroutines.

Breaking Changes:

  • Native Coroutines: API interfaces using coroutines must be refactored. Methods returning Call<T> should be converted to suspend functions that return the body type directly. [2, 10]
  • Error Handling: suspend functions now throw HttpException directly for server errors, requiring updates to error handling logic to use try-catch blocks. [1, 2]
  • Runtime Requirement: The library now requires Java 8+ or Android API 21+. [4]

While the library maintains binary compatibility with version 2.x, adopting these new idiomatic patterns requires developer action. [5, 6]

Source: Release notes

Recommendation: Plan for refactoring of Kotlin-based service interfaces to adopt suspend functions and update associated error handling.

Notice 🤖: This content was generated using artificial intelligence. AI-generated content may contain errors and should be reviewed for accuracy before use.


Vulnerabilities that will be fixed with an upgrade:

Issue Score Upgrade
high severity Improper Certificate Validation
SNYK-JAVA-COMSQUAREUPOKHTTP3-13961111
  125   com.squareup.retrofit2:retrofit:
2.11.0 -> 3.0.0
Major version upgrade 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.

@bwappsec bwappsec changed the title [Snyk] Security upgrade com.squareup.retrofit2:retrofit from 2.11.0 to 3.0.0 SWI-3723 [Snyk] Security upgrade com.squareup.retrofit2:retrofit from 2.11.0 to 3.0.0 Nov 20, 2025
@bwappsec
Copy link
Author

bwappsec commented Nov 20, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

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