Skip to content
  1. Blog

Announcing Allow SVG

Ben Word Ben Word on

We’re excited to introduce Allow SVG, a minimal, security-first WordPress plugin that enables SVG file uploads with zero configuration.

SVG support in WordPress has been a long-standing feature request (open since 2011), but the risks of unsanitized uploads have kept it out of core.

Why another SVG plugin?

Most existing SVG upload plugins are either:

  • Over-engineered with unnecessary UI or configuration
  • Bundled with inline rendering or unrelated frontend logic

Allow SVG does just one thing: it adds SVG support to your WordPress site, without exposing your site to script injection or XXE vulnerabilities.

Security-first by design

Allow SVG actively scans and validates uploaded files using PHP’s DOMDocument, with protections against:

  • Embedded <script> tags
  • Inline event handlers (onload, onclick, etc.)
  • <foreignObject> and other XSS vectors
  • External entities and remote references (XXE)

Zero configuration

There are no settings pages, toggles, or prompts. Just install the plugin and SVG uploads are enabled for users with media upload permissions.

It works out of the box in both single-site and multisite environments, and plays nicely with custom roles or permissions systems.

Built for developers

The plugin is fully test-covered, with:

  • PHP unit tests
  • Integration tests for WordPress hooks
  • End-to-end tests using Playwright

The source is intentionally minimal, modern, and documented. If you’re building with Bedrock, this will drop cleanly into your stack.

Get started

Allow SVG is open-source and available now on GitHub.

Discuss this post on Roots Discourse

About the author

Ben Word

Ben Word has been creating WordPress sites since 2004. He loves dogs, climbing, and yoga, and is passionate about helping people build awesome things on the web.

Subscribe for updates

Join over 8,000 subscribers on our newsletter to get the latest Roots updates and tips on building better WordPress sites

Looking for WordPress plugin recommendations, the newest modern WordPress projects, and general web development tips and articles?

One last step! Check your email for a verification link.