How to Upload SVG to WordPress: Safe SVG vs SVG Support for Adding Vector Graphics Securely
Use SVG in WordPress only through a sanitizing plugin, and choose Safe SVG unless you specifically need inline SVG control. WordPress blocks SVG uploads by default because the format is XML-based and can carry scripts, external references, and other risky markup; WordPress also limits uploads to approved file types [source: WordPress.org]. That security choice is sensible, even if it is irritating when all you want is a crisp logo. Read more