BLACK FRIDAY
Save 59% on PageForge Annual $191/year $485/year
Claim 59% Off →
Safe SVG icon
Actively maintained Tested with WP 7.1 #53 most installed plugin #1 in media Community

Safe SVG

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.

Active installs1M+1M+ tier
Downloads · 30d798.6K▲ 7.2× vs prev. 30d
Rating4.9/579 reviews
Health score94/100Excellent
All-time downloads14.1MSince Jul 2015
Support resolved—No recent threads
RequiresWP 6.9PHP 7.4+
Overall rank#53of 69,606 plugins
Our verdict

Safe pick

Yes — Safe SVG is a safe, well-maintained plugin to use in 2026. It runs on 1M+ sites, is rated 4.9/5 and was last updated 5 days ago, and scores 94/100 on our health check.

  • One of the most-used plugins on the web — 1M+ active sites
  • Loved by users — 4.9/5 from 79 reviews
  • Actively developed — last update 5 days ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 624.8% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

55K110.1K165.1KJun 30Aug 13Sep 27
Yesterday8,112
Daily average (1y)6,154
Peak day220,121Sep 23, 2026
Last 12 months2.2M

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Safe SVG stands today
Overall popularity #53 of 69,606 WordPress.org plugins Top 0.08%
1M+ installs tier 42 of 57
Next tier: 5M+ installs
Media #1 of 729 plugins → Mime #1 of 16 plugins → Security #8 of 1,578 plugins → SVG #2 of 102 plugins → Vector #2 of 10 plugins →

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
media >100 10,000 Best media plugins →
mime #4 711 Best mime plugins →
security #81 10,000 Best security plugins →
SVG #1 2,534 Best SVG plugins →
Vector #2 585 Best Vector plugins →

Version adoption

Share of active sites per release.

  • 2.536.2%
  • 2.436.0%
  • 2.310.8%
  • 2.28.5%
  • Other8.5%

Rating breakdown

★★★★★★★★★★ 4.9 from 79 reviews

  • 5★89.9%
  • 4★8.9%
  • 3★0.00%
  • 2★1.3%
  • 1★0.00%

About Safe SVG

From the official readme · v2.5.1

Description

Safe SVG is the best way to Allow SVG Uploads in WordPress!

It gives you the ability to allow SVG uploads whilst making sure that they’re sanitized to stop SVG/XML vulnerabilities affecting your site. It also gives you the ability to preview your uploaded SVGs in the media library in all views.

Current Features

  • Sanitised SVGs – Don’t open up security holes in your WordPress site by allowing uploads of unsanitised files.
  • SVGO Optimisation – Runs your SVGs through the SVGO tool on upload to save you space. This feature is disabled by default but can be enabled by adding the following code: add_filter( 'safe_svg_optimizer_enabled', '__return_true' );
  • View SVGs in the Media Library – Gone are the days of guessing which SVG is the correct one, we’ll enable SVG previews in the WordPress media library.
  • Choose Who Can Upload – Restrict SVG uploads to certain users on your WordPress site or allow anyone to upload.

Initially a proof of concept for #24251.

SVG Sanitization is done through the following library: https://github.com/darylldoyle/svg-sanitizer.

SVG Optimization is done through the following library: https://github.com/svg/svgo.

Technical: Upload Path Security

WordPress’s _wp_handle_upload( $file, $action ) function allows any $action value, which determines the filter hook name: {$action}_prefilter. Safe SVG hooks common actions like wp_handle_upload and wp_handle_sideload, but cannot hook arbitrary custom actions defined by third-party code. Since upload actions are unbounded and MIME allowances are global, we cannot guarantee sanitization coverage across all possible upload paths.

Installation

Install through the WordPress directory or download, unzip and upload the files to your /wp-content/plugins/ directory

Frequently asked questions

Can we change the allowed attributes and tags?

Yes, this can be done using the svg_allowed_attributes and svg_allowed_tags filters. They take one argument that must be returned. See below for examples: add_filter( 'svg_allowed_attributes', function ( $attributes ) { // Do what you want here... // This should return an array so add your attributes to // to the $attributes array before returning it. E.G. $attributes[] = 'target'; // This would allow the target="" attribute. return $attributes; } ); add_filter( 'svg_allowed_tags', function ( $tags ) { // Do what you want here... // This should return an array so add your tags to // to the…

Can my theme style an inline SVG?

Mostly, yes. The Inline SVG block renders an SVG that carries its own element inside a shadow root, because CSS inside an inline SVG is otherwise applied to the whole page rather than just the SVG. Stylesheets cannot reach into a shadow root, so theme CSS such as .entry-content svg { fill: red; } will not apply to those SVGs. Inherited properties still cross the boundary, so setting color on an ancestor and using currentColor inside the SVG works, as do CSS custom properties. SVGs that do not contain a element are rendered without the shadow root and can be styled by theme stylesheets. To…

Why doesn’t Safe SVG globally enable SVG uploads?

Safe SVG only allows SVGs through upload paths it can actively sanitize. While most WordPress uploads use standard functions like wp_handle_upload() (which Safe SVG hooks), plugins and themes can create custom upload paths by calling WordPress’s underlying _wp_handle_upload() function with arbitrary action parameters. Globally enabling the image/svg+xml MIME type would allow SVGs through all upload paths—including custom ones Safe SVG cannot intercept and sanitize. This would create security vulnerabilities where unsanitized SVGs containing malicious scripts could be uploaded. This is a…

Where do I report security bugs found in this plugin?

Please report security bugs found in the source code of the Safe SVG plugin through the Patchstack Vulnerability Disclosure  Program. The Patchstack team will assist you with verification, CVE assignment, and notify the developers of this plugin.

Changelog

This is a security release, it is recommended to upgrade immediately.

2.5.1 – 2026-09-22

2.5.0 – 2026-09-07

2.4.0 – 2025-09-22

View historical changelog details here.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Safe SVG alternatives

All media plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
2 FileBird – WordPress Media Library Folders & File Manager FileBird – WordPress Media Library Folders & File Manager Organize thousands of WordPress media files in folders / categories with ease. by Ninja Team 200K+ ★★★★★★★★★★ 4.7 (1.1K) 1 month ago 86
3 Media Cleaner: Clean your WordPress! Media Cleaner: Clean your WordPress! Clean your WordPress! Eliminate unused and broken media files. For a faster, and better… by Jordy Meow 90K+ ★★★★★★★★★★ 4.6 (775) 1 day ago 88
4 Media Library Assistant Media Library Assistant Enhances the Media Library; powerful gallery and list shortcodes, full taxonomy support… by David Lingren 70K+ ★★★★★★★★★★ 4.8 (202) 23 hours ago 94
5 Add From Server Add From Server Add From Server is designed to help ease the pain of bad web hosts, allowing you to upload… by Dion Hulse 60K+ ★★★★★★★★★★ 4.6 (239) 6 years ago 46
6 Default Featured Image Default Featured Image Add a Default Featured Image for all posts & pages. by Jan-Willem 60K+ ★★★★★★★★★★ 4.8 (68) 3 months ago 64
7 Phoenix Media Rename Phoenix Media Rename The Phoenix Media Rename plugin allows you to easily rename (and retitle) your media files… by crossi72 50K+ ★★★★★★★★★★ 4.7 (75) 2 weeks ago 79
8 Media Sync Media Sync Simple plugin to scan "uploads" directory and bring those files into Media Library. by erolsk8 50K+ ★★★★★★★★★★ 4.7 (86) 1 month ago 75
9 Media File Renamer: Rename for better SEO (AI-Powered) Media File Renamer: Rename for better SEO (AI-Powered) Rename filenames and media metadata for SEO and tidiness. Using AI, manually, in bulk, or… by Jordy Meow 40K+ ★★★★★★★★★★ 4.6 (447) 1 day ago 78
10 Reveal IDs Reveal IDs What this plugin does is to reveal most removed IDs on admin pages, as it was in versions… by wpseek 40K+ ★★★★★★★★★★ 5 (61) 1 month ago 87
11 Easy Watermark Easy Watermark Allows to add watermark to images automatically on upload or manually. by Wojtek Szałkiewicz 30K+ ★★★★★★★★★★ 3.7 (159) 1 year ago 51

FAQ

Safe SVG: quick answers

Straight answers, pulled from live WordPress.org data.

Live data from WordPress.org · checked Sep 28, 2026

Is Safe SVG free?

Yes. Safe SVG is free to download and use from the official WordPress.org plugin directory.

Is Safe SVG safe to use in 2026?

Yes — Safe SVG is a safe, well-maintained plugin to use in 2026. It runs on 1M+ sites, is rated 4.9/5 and was last updated 5 days ago, and scores 94/100 on our health check.

How many websites use Safe SVG?

Safe SVG is active on 1M+ WordPress websites and has been downloaded 14,121,637 times since it launched in July 2015. It was downloaded 798,576 times in the last 30 days.

Does Safe SVG work with WordPress 7.1?

Yes. The developer has tested Safe SVG up to WordPress 7.1.2, the latest release. It requires WordPress 6.9 or newer.

What PHP version does Safe SVG need?

Safe SVG requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Safe SVG last updated?

The latest version, 2.5.1, was released on September 22, 2026 (5 days ago).

Who makes Safe SVG?

Safe SVG is developed and maintained by 10up.

What are the best alternatives to Safe SVG?

The most popular alternatives to Safe SVG are FileBird (200K+ installs), Media Cleaner: Clean your W… (90K+ installs) and Media Library Assistant (70K+ installs).

Powered by PageForge

Want thousands of pages that rank like these? Build them in an afternoon.

This directory runs on the same engine as PageForge. Turn any spreadsheet, CSV or API into thousands of fast, SEO-ready WordPress pages — with schema, internal links and AI-written copy baked in.

  • CSV, Google Sheets & API data sources
  • AI content, schema & internal links per page
  • Works with Elementor, Gutenberg, Yoast & Rank Math
  • Free on WordPress.org — no credit card
Sarah is here to help!
Hi there! 👋 Need help finding what you're looking for?
Sarah
Sarah
Online & Ready to Help
Hi there! 👋 Need help finding what you're looking for?

We'll use this to continue our conversation

Just now ✓ Verified

Join 500+ SEO Pros Scaling Their Strategy

Get exclusive programmatic SEO tactics, AI content workflows, and the latest PageForge updates delivered straight to your inbox. Stay ahead of the algorithm.

We care about your data in our privacy policy.