Skip to content
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

Update gson to its latest version #3651

Merged
merged 1 commit into from Nov 5, 2021
Merged

Update gson to its latest version #3651

merged 1 commit into from Nov 5, 2021

Conversation

JPrendy
Copy link
Contributor

@JPrendy JPrendy commented Nov 5, 2021

What is the purpose of this PR?

We noticed that using Snyk that our CI would fail due to the following warning raised by Snyk saying the current version gson that Retrofit uses is a high severity issue.

There are temporary ways to get around this with Snyk, but the permanent solution would be for Retrofit to upgrade to the latest version of gson to resolve this issue.

Closes #3652

@JakeWharton JakeWharton merged commit 515bfc9 into square:master Nov 5, 2021
@JakeWharton
Copy link
Member

Please keep in mind that we do not release new versions of this library solely to bump dependencies–even for vulnerabilities. As a consumer you should not rely on our transitive dependency to dictate the version of the serialization library and should instead maintain a sibling dependency on the version you desire (and be keeping that up to date).

E.g.,

implementation 'com.squareup.retrofit:retrofit2:2.9.0'
implementation 'com.squareup.retrofit:converter-gson:2.9.0'
implementation 'com.google.gson:gson:2.8.9'

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.

Vulnerability in com.google.code.gson:gson
2 participants