🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
SVG Enabler icon
Activement maintenu Testé avec WP 7.1 #1 in allow svg upload

SVG Enabler

Safely upload SVG files to WordPress. Every SVG is sanitized to remove scripts, event handlers and remote references before it is stored.

Installations actives30+10+ niveaux
Téléchargements · 30D170▼ -14,6 % vs prév. 30j
Évaluation—0 avis
Score de santé63/100Bon
Téléchargements de tous les temps3.5KSince Jan 2023
Support résolu—Aucun fil de discussion récent
A besoin deWP 6.0PHP 7.4+
Téléchargements · 7j46▼ -9,8% Semaine sur semaine
Notre verdict

Choix solide

SVG Enabler is a solid plugin choice in 2026, with a few things worth checking first. It runs on 30+ sites and was last updated 2 months ago, and scores 63/100 on our health check.

  • Testé avec le dernier WordPress (7.1)
  • Petite base d'utilisateurs (30+ installations actives)
  • Très peu de critiques jusqu'à présent

Téléchargements quotidiens

91929Sep 3Oct 17Dec 1
Hier9
Moyenne quotidienne (1 ans)2
Jour de pointe395 Octobre 2026
12 Derniers mois820

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where SVG Enabler stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
allow svg upload #35 1,292 Best allow svg upload plugins →
SVG #62 3,334 Meilleurs plugins SVG →
svg sanitizer #10 150 Best svg sanitizer plugins →
svg support #45 2,686 Best svg support plugins →
svg upload #47 2,938 Best svg upload plugins →

Adoption de version

Part de sites actifs par version.

  • 1.064.9%
  • 2.035.1%

About SVG Enabler

À partir du Lisez-moi officiel · v2.0.0

Description

SVG Enabler lets you upload SVG files to the WordPress media library while making sure each file is safe.

SVG is an XML format, which means it can carry JavaScript, event handler attributes, external references and XML entities. Uploading an unsanitized SVG is equivalent to allowing arbitrary HTML and JavaScript uploads. This plugin sanitizes every SVG during upload, before the file is written to your uploads directory.

What gets removed

  • <script> elements and inline JavaScript
  • Event handler attributes such as onload, onclick, onerror
  • javascript: URLs in links and attributes
  • <foreignObject> payloads
  • Remote references in <image>, <use>, href and xlink:href
  • Remote url() and @import rules inside <style> blocks
  • XML entities and DTD declarations (XXE)
  • CSS expression() and behavior: declarations

Traits

  • SVG and SVGZ upload support
  • Sanitizes on upload, before the file reaches the uploads folder
  • Uses the actively maintained enshrined/svg-sanitize library (0.22.0+)
  • Correct image dimensions in the media library, editor and srcset
  • Works with the block editor, classic editor and featured images
  • Filterable allow-lists and capability requirements
  • No settings screen required, works out of the box

Installation

INSTALL “SVG Enabler” FROM WITHIN WORDPRESS

  1. Visit the plugins page within your dashboard and select ‘Add New’;
  2. Search for ‘SVG Enabler’;
  3. Activate SVG Enabler from your Plugins page;
  4. You are done. Upload an SVG from the media library.

INSTALL “SVG Enabler” MANUALLY

  1. Upload the ‘svg-enabler’ folder to the /wp-content/plugins/ directory;
  2. Activate the SVG Enabler through the ‘Plugins’ menu in WordPress;
  3. You are done.

Journal de modifications

Security release. Fixes two sanitizer bypasses and an upstream library affected by CVE-2025-55166, and fixes a fatal error that broke SVG uploads. Upgrading is strongly recommended.

2.0.0

La sécurité

  • Fixed a sanitizer bypass: remote references in href, xlink:href, src and similar attributes are now removed. Previously an uploaded SVG could contact an external server.
  • Fixed a sanitizer bypass: @import, remote url() references, expression() and behavior: inside <style> blocks are now removed.
  • Upgraded enshrined/svg-sanitize from 0.15.4 to 0.22.0. The old version was affected by CVE-2025-55166, CVE-2022-23638 and CVE-2019-10772.
  • SVG uploads now require the manage_options capability by default, instead of relying on unfiltered_upload, which WordPress only grants on multisite.

Fixé

  • Fixed a fatal error on every SVG upload: svgFileValidator() called $this->sanitize(), a method that did not exist.
  • Fixed a fatal error caused by registering svgFileValidator() for wp_check_filetype_and_ext with four accepted arguments while the callback only accepted one.
  • Removed a recursive call to wp_check_filetype_and_ext() from inside its own filter.
  • Fixed undefined $width and $height variables in getImageTagOverride() when $size was not an array.
  • Fixed the optimisthub_svg_enabler_allowed_attributes and _allowed_tags filters being applied but their return values discarded, which made both filters do nothing.
  • Fixed SVG images rendering as 1×1 pixels in the editor and on the front end. Real width and height are now derived from the SVG’s width/height or viewBox.
  • Fixed srcset generating broken entries for SVG attachments.
  • Added a media library preview and correct attachment dimensions.

Modifié

  • Rewritten as a namespaced, PSR-4 autoloaded plugin (OptimistHub\SvgEnabler).
  • Sanitization now runs before the file is moved into the uploads directory.
  • Added composer.json so dependencies are reproducible; the previous composer.json was excluded by .gitignore.
  • Requires WordPress 6.0 and PHP 7.4 or newer.
  • The plugin now refuses to enable SVG uploads when PHP lacks the dom and libxml extensions, and shows an admin notice explaining why.

1.0.3

  • Author name issue.

1.0.2 – 1.0.1

  • Github Action

1.0.0

  • Stable version released

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

FAQ

SVG Enabler: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is SVG Enabler free?

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

Is SVG Enabler safe to use in 2026?

SVG Enabler is a solid plugin choice in 2026, with a few things worth checking first. It runs on 30+ sites and was last updated 2 months ago, and scores 63/100 on our health check.

How many websites use SVG Enabler?

SVG Enabler is active on 30+ WordPress websites and has been downloaded 3,517 times since it launched in January 2023. It was downloaded 170 times in the last 30 days.

Does SVG Enabler work with WordPress 7.1?

Yes. The developer has tested SVG Enabler up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.

What PHP version does SVG Enabler need?

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

When was SVG Enabler last updated?

The latest version, 2.0.0, was released on October 4, 2026 (2 months ago).

Who makes SVG Enabler?

SVG Enabler is developed and maintained by Optimist Hub.

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir