Including SVG graphics in posts

I believe there are security risks involved with allowing SVG to be posted inline, we do allow SVG uploaded as an image though — is it possible to produce a .svg file instead?