rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.78k stars 1.22k forks source link

Update libraries against known CVE security fixes #547

Closed fbascheper closed 5 years ago

fbascheper commented 6 years ago

I'm using the Telegram Bots API for the Kafka Connect telegram sink. Thanks to the Snyk.io scanner I've become aware of security leaks introduced by Jackson libraries used in the Telegram Bots API.

These include:

Remediations:

The Guava dependency is introduced through com.google.inject:guice@4.1.0. By upgrading guice to 4.2.2, the guava dependency is upgraded to 25.1-android which fixes the CVE issue.

fbascheper commented 6 years ago

Hmm, according to https://github.com/google/guava/issues/2824 the guava people introduced some unnecessary new dependencies that used to be optional and can be safely excluded ahead of the guava 23 release.