Image and Video codecs come under attack quite often see https://blog.sucuri.net/2016/05/imagemagick-remote-command-e...
In this context the image manipulation they do with pillow and the underlying libjpeg would be a potential source of vulnerabilities.