Plugin profile · Images and sliders Hidden by the free version

SVG Support: review, strengths and recommended settings

SVG Support lets you upload SVG files to the WordPress Media Library, sanitizes them and can render them inline so you can style them with CSS. Our take, its limitations, the settings that keep uploads safe and the patched flaws worth knowing.

The essentials

  • Best for showing SVG logos and icons, and animating them in CSS with Advanced Mode’s inline rendering.
  • Main caveat: several XSS flaws bypassed the sanitizer, so keep uploads limited to admins.
  • Free with no paid version; a Pro edition is announced, with no price or date yet.

Key facts

Category
Images and sliders
Vendor
Benbodhi
Price
Free Free, with no paid version (a Pro edition is announced, with no price)
Active installations
1,000,000+
WordPress.org rating
4.8/5 (356 reviews)
Last updated
(Version 2.6.3)
Requirements
WordPress 5.8+, PHP 7.4+
Analyze a site

Figures: WordPress.org

SVG Support: review, strengths and recommended settings

What SVG Support does on your site

Out of the box, WordPress won’t accept SVG files in the Media Library, because an SVG is an XML document that can carry script. SVG Support lifts that block: your logos, icons and vector illustrations upload like any other image and work in Image and Cover blocks, featured images and widgets. Every file is sanitized on upload by the enshrined/svg-sanitize library, which strips dangerous tags and attributes, and by default only administrators can upload SVGs.

“Advanced Mode,” off by default, adds inline rendering: a small script swaps any <img> tag carrying the style-svg class for the SVG markup itself. You can then recolor or animate each element inside the drawing with CSS or JavaScript. In this mode, the SVG injected into the page is run through DOMPurify in the browser, and a “Render this SVG inline (advanced)” checkbox appears under the featured image.

The plugin has been built for more than ten years by a single developer, Benbodhi, who answers the wordpress.org support forum himself. It is completely free: an SVG Support Pro edition (visual animation and recoloring) is announced on svg.support, with only a waitlist and no published price.

Diagram: SVG Support works on visitors and bots, database and files, external services. Public traces: folder name (hidden with Pro); tag IDs (hidden with Pro).

Which sites SVG Support suits

SVG Support covers two quite different needs, and it helps to know which one is yours before installing it:

  • Sites that just want to display SVGs: a crisp logo on Retina screens and lightweight icons, with no special setup.
  • Front-end developers: inline rendering lets you change an icon’s color on hover or animate a path in CSS without pasting SVG code into every page by hand.
  • Multisite networks: SVG uploads work on subsites, including for the network administrator.

It is the wrong pick if dozens of authors or clients need to upload SVGs: each file is still an active document, and opening uploads to less trusted roles raises the risk of a cross-site scripting flaw, sanitization or not. If all you need is uploading, without inline rendering, Safe SVG by 10up is the other widely installed plugin in this niche.

SVG Support strengths and limitations

Strengths

  • Cautious defaults. Uploads limited to administrators, every file sanitized for every role, and browser-side sanitization turned on.
  • Built-in inline rendering. One class on an Image or Cover block is enough to style and animate the inside of the SVG.
  • Every upload path covered. Since the 2.6.x releases, the Media Library, REST API, XML-RPC, WP-CLI and importers all go through the same sanitizer.
  • Nothing on the front end by default. Without Advanced Mode, no script loads for visitors.

Limitations

  • A record of bypasses. Several published XSS flaws got around the SVG sanitizer, so updates should never wait.
  • One maintainer. Support and fixes rest on a single person, with no paid support plan.
  • Patchy translations. Several languages, French among them, do not cover the settings screen rebuilt in 2.6.0.
  • Inline rendering needs JavaScript. Images are swapped in the browser, using jQuery unless you pick the dependency-free script.

The SVG Support settings we recommend

The screen lives under Settings > SVG Support and saves each change automatically.

SettingRecommended valueWhy
Restrict SVG uploads to
Settings > SVG Support > General
Administrator only (default)The published XSS flaws required a less trusted role, such as Author, to have been granted SVG uploads.
Do not sanitize for these roles
Same screen
Empty (default)Every uploaded file is then sanitized, administrators’ files included.
Sanitize SVG on front-end
Same screen
On (default)With Advanced Mode, the SVG injected into the page goes through DOMPurify before it is displayed.
Minify SVG
Same screen
On if file size matters, after a testThe stored file is rewritten without whitespace or comments; check how a few files display.
Advanced Mode
Settings > SVG Support
Off if you don’t animate or style your SVGsNo script then loads on the public site.
Output JS in footer
Advanced Mode
OnThe inline-rendering script moves to the bottom of the page; your theme must call wp_footer().
Use vanilla JS
Advanced Mode
On if your theme doesn’t load jQueryAvoids loading jQuery just for inline rendering.
Force inline SVG
Advanced Mode, Legacy settings
Off (default)The plugin itself labels it “Use with caution”: every SVG on the site would be rendered inline.
  • Upload a test SVG to the Media Library as an administrator: its thumbnail and dimensions should show.
  • Try the same upload with an Author account: it should be refused as long as that role isn’t allowed.
  • With Advanced Mode on, add the style-svg class to an Image block and view the page source: an <svg> tag should replace the <img>.
  • In Plugins, confirm you run at least version 2.6.3, which closes the latest known bypasses.

SVG Support security: a sanitizer under scrutiny

The published flaws below are rated medium, and most assume a non-administrator role was allowed to upload SVGs. They show why keeping that right for administrators remains the most useful setting:

  • CVE-2023-6708, versions up to 2.5.7: stored XSS through an SVG uploaded by an authorized author, even with sanitization on (CVSS 5.4).
  • CVE-2024-10222, versions up to 2.5.10: another bypass of upload sanitization, stored XSS exploitable by an authorized author (CVSS 6.4).
  • CVE-2026-48973, fixed in 2.5.15: missing access control on the inline featured image option (CVSS 4.3).
  • CVE-2021-24686, fixed in 2.3.20: XSS through the CSS target class setting, exploitable by an administrator even without the unfiltered_html capability.

Versions 2.5.17 through 2.6.3 closed further bypasses via .svgz files, XML-RPC uploads and SVG animations in Safari, and updated the sanitizer library. So turn on automatic updates for the plugin (see our guide to automatic plugin updates), and read our article on XSS flaws in WordPress to understand the risk. WP Feint strips SVG Support’s traces from your pages (the plugin folder path and the bodhi script IDs), which makes it harder for bots targeting its flaws to spot, without replacing updates.

What WP Feint hides for SVG Support

Free version Handled by the free plugin Feint Security

SVG Support is one of the 50 most used plugins known to the free version. Pro goes further by renaming its files.

Free version

Nothing to remove

With Pro

  • folder name
  • tag IDs

Still visible

No known trace

SVG Support FAQ

Why doesn’t my SVG show up after uploading it?

Usually the file has no usable dimensions: give it a width and height in CSS, as the developer recommends. The “Load front-end CSS” setting also adds a small stylesheet that helps display SVGs in some themes.

How do I animate or recolor an SVG with SVG Support?

Turn on Advanced Mode, add the style-svg class to the image, then target the SVG’s inner elements in CSS. To reach one specific element, give it a class inside the SVG file with a code editor.

Is it safe to let authors upload SVGs?

Sanitization lowers the risk without removing it: several flaws have bypassed it in the past. Only open uploads to roles you trust, keep sanitization on for everyone and keep the plugin up to date.

Is there a paid version of SVG Support?

Not yet. SVG Support Pro is announced on the plugin’s website with a waitlist, but no price or date. The developer states that the free plugin will stay free.

All camouflaged plugins

Start free, go Pro when you’re ready

The free version already hides WordPress and moves the login page. Pro adds aliases, two-factor authentication and monitoring.