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

okio dependency #2392

Closed
georgehany309 opened this issue Sep 20, 2023 · 5 comments · Fixed by #2418
Closed

okio dependency #2392

georgehany309 opened this issue Sep 20, 2023 · 5 comments · Fixed by #2418

Comments

@georgehany309
Copy link

georgehany309 commented Sep 20, 2023

it would be great if you updated okio and okhttp dependencies to the latest version as it gives us a vulnerability issue as lottie uses an old version of them and maybe it causes to remove lottie for that reason

@gpeal
Copy link
Collaborator

gpeal commented Oct 15, 2023

Which vulnerability? I can't upgrade to okio 2.0 because it would pull in Kotlin as a transitive dependency which I'd prefer not to do in case there are any apps that (for some reason) aren't using Kotlin yet. You can also not use Lottie networking feature and no okio code paths will be executed.

@spaultownsend
Copy link

This is tripping our security scanner as well. It looks like all versions of okio < 3.4 have a vulnerability (see https://mvnrepository.com/artifact/com.squareup.okio/okio). Ideally, lottie could move to the latest okio.

@gpeal
Copy link
Collaborator

gpeal commented Oct 25, 2023

Could you link to the okio commit that fixed the vulnerability?

@spaultownsend
Copy link

Looks the the okio fix is this commit: square/okio#1280

@gpeal
Copy link
Collaborator

gpeal commented Oct 26, 2023

Thanks for the source. From the looks of it, the worst that can happen is that the app crashes if you try and load a malicious zip file. Are either of you using Lottie's network handling to load zip files from urls you don't control? If you are and that is an important feature, you can use your own NetworkFetcher to bypass Lottie's networking stack when loading animations from a URL. If you load animations in your own stack or use your own Lottie NetworkFetcher to load animations then Lottie's okio code will never get executed.

gpeal added a commit that referenced this issue Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants