Attachments typed as SVG over XML-RPC skip sanitization and the role setting, leading to gzip bombs
Description
The plugin trusts an attachment's post_mime_type, which XML-RPC's metaWeblog.newMediaObject lets the caller set to image/svg+xml on arbitrary bytes. Then at render time, those bytes are gunzip with no size limit.
This has been resolved in Safe SVG v2.5.2 by checking both the MIME type and the file extension.