Well websites are stupid if they don't reencode user-uploaded images for precisely this reason...
Otherwise an evil client uploads a malicious webp image, which then gets hosted and 'shared' by the server to other users, who upon viewing said image get exploited and share more malicious images...