🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
CodePros SVG Secure Support icon
gepflegt Getestet bis 7.0.9 #20 in sanitize

CodePros SVG Secure Support

Highly secure SVG upload support for WordPress. Validates, sanitizes, and protects SVG files through a multi-layer security pipeline.

Aktive Installationen<10Neu
Downloads · 30d81▲ +24.6% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score49/100Messe
Downloads aller Zeiten361Since Jun 2026
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 6.0PHP 7.4+
Downloads · 7d16▼ -30,4% Woche für Woche
Unser Urteil

Mit Vorsicht verwenden

CodePros SVG Secure Support works, but test it on a staging site before relying on it in 2026. Was last updated 6 months ago, and scores 49/100 on our health check.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

134Sep 5Oct 19Dec 3
Gestern2
Täglicher Durchschnitt (1 Jahr)2
Spitzentag41Jun 15, 2026
Letzte 12 Monate364

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where CodePros SVG Secure Support stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
sanitize #73 1,767 Best sanitize plugins →
Sicherheit >100 10,000 Beste Sicherheits-Plugins →
SVG >100 3,349 Best SVG plugins →
upload >100 10,000 Best upload plugins →
xss protection >100 705 Best xss protection plugins →

About CodePros SVG Secure Support

Aus der offiziellen Readme · V1.0.0

Beschreibung

WordPress does not support SVG uploads natively — and naive SVG plugins are a well-known attack surface. SVG files are XML documents that can carry XSS payloads, XXE attacks, external resource injection, and embedded HTML. CodePros SVG Secure Support adds safe, production-ready SVG uploads through a layered defense pipeline.

Security Pipeline

Every uploaded SVG passes through five sequential checks before it is accepted:

  1. Extension check — Blocks double-extension filenames (e.g. payload.php.svg) and enforces .svg only.
  2. MIME check — Verifies actual file bytes return image/svg+xml via finfo; confirms <svg or <?xml is present in the header bytes.
  3. Size check — Rejects files exceeding the configured maximum (default 1 MB).
  4. Node-count check — Parses the XML and counts DOM nodes; rejects files above the threshold (default 5,000 nodes) to prevent node-flood DoS attacks.
  5. Dimension check — Reads the root <svg> width/height/viewBox; rejects unreasonably large declared dimensions (default 10,000 px).

After validation, the file is sanitized:

  • DOM sanitization via the battle-tested enshrined/svg-sanitize library with custom tag and attribute whitelists.
  • Remote reference stripping — all external URLs are removed.
  • Final string-level regex scan for javascript:, <script, inline event handlers (on*=), and CSS expression() — any match causes the upload to be rejected entirely.

Security Headers

When SVG attachment pages are served, the plugin adds:

  • Content-Security-Policy (configurable, secure default provided)
  • X-Content-Type-Options: nosniff
  • X-Frame-Options: SAMEORIGIN

Server-Level Hardening (Optional but Recommended)

The plugin’s PHP layer covers every SVG upload that passes through WordPress. But if someone accesses an uploaded file directly — e.g. by visiting https://example.com/wp-content/uploads/2024/01/logo.svg — WordPress is bypassed entirely, so the PHP security headers are never sent.

The plugin ships two ready-to-use server configuration snippets to close that gap:

  • uploads-htaccess.txt — for Apache / LiteSpeed servers
  • uploads-nginx.conf — for Nginx servers

Each snippet does three things:

  1. Blocks server-side script execution in wp-content/uploads/ — if an attacker somehow uploads a .php file and tries to access it directly, the server returns 403 instead of executing it.
  2. Enforces the correct SVG MIME type (image/svg+xml) — some server setups serve SVGs as text/plain, which prevents browsers from honouring Content Security Policy rules scoped to that MIME type.
  3. Adds security headers on direct SVG requests — the same X-Content-Type-Options, X-Frame-Options, and Content-Security-Policy headers that the PHP layer adds on WordPress attachment pages, so direct file links are equally protected.

Applying these snippets is the difference between WordPress-mediated access being protected and all access (direct URL, CDN pull, hotlink) being protected.

Admin UI

A tabbed settings page under Settings → SVG Secure Support provides:

  • Settings tab — Configure allowed upload roles, file size/node/dimension limits, sanitization options, CSP header value, and logging preferences.
  • Security Logs tab — Paginated, filterable log viewer showing every security event (blocked upload, removed tag/attribute, suspicious payload). Includes a log purge action.

Hauptmerkmale

  • Role-based upload access — select one or more WordPress roles (default: Administrator) whose members may upload SVG files
  • Automatic upload-time sanitization — clean SVG replaces the original tmp file before WordPress moves it
  • Security event logging to the WordPress debug log and a dedicated database table
  • Configurable log retention with one-click purge
  • Bundled .htaccess and Nginx config snippets for the uploads directory

Installation

Mindestanforderungen

  • WordPress 6.0 or higher
  • PHP 7.4 oder höher
  • Composer (to install dependencies before activation)

Installation Steps

  1. Upload the svg-secure-support folder to /wp-content/plugins/.
  2. In the plugin directory, run:
    composer install
  3. Aktivieren Sie das Plugin über den Bildschirm Plugins in WordPress.
  4. Go to Settings → SVG Secure Support to configure upload capability, limits, and logging.

Important: The plugin will not activate correctly without the Composer dependencies. An admin notice will be displayed if vendor/autoload.php is missing.

Uploading via the WordPress Admin

After activation, simply upload .svg files through the standard WordPress Media Library. Users without the required capability will receive a clear error message.

Änderungsprotokoll

Initial release. No upgrade steps required.

1.0.0

  • Erste Freigabe.
  • Role-based upload access with multi-role selection; Administrators allowed by default.
  • Five-check SVG validation pipeline (extension, MIME, size, node count, dimensions).
  • DOM sanitization via enshrined/svg-sanitize with custom tag/attribute whitelists.
  • XML comment stripping and enhanced string-level XSS payload scan as a final defense layer.
  • Security event logging to WP debug log and database table.
  • CSP, X-Content-Type-Options, and X-Frame-Options headers on SVG attachment pages.
  • Tabbed admin UI with settings and security log viewer.
  • Bundled Apache and Nginx upload-directory hardening snippets.

Vollständiges Änderungsprotokoll auf WordPress.org →

Screenshots

Settings tab — Upload restrictions, sanitization options, CSP header, and logging configuration.
Settings tab — Upload restrictions, sanitization options, CSP header, and logging…
Security Logs tab — Paginated log viewer with severity and event-type filters.
Security Logs tab — Paginated log viewer with severity and event-type filters.

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best CodePros SVG Secure Support alternatives

All sanitize plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 Easy SVG Easy SVG Upload SVG files safely: every file is cleaned before it is stored. Keep your own icons in… by UnleashWP 40K+ ★★★★★★★★★★ 5 (8) Vor 2 Tagen 86
2 Clean Image Filenames Clean Image Filenames This plugin automatically converts language accent characters to non-accent characters in… by Upperdog 30K+ ★★★★★★★★★★ 4.6 (21) Vor 11 Monaten 61
3 Filenames to latin Filenames to latin Sanitize filenames to latin during upload. von webvitalii 8K+ ★★★★★★★★★★ 4.9 (14) Vor 6 Jahren 41
4 Clean Filenames Clean Filenames Removes or replace international or special characters that can make your filenames not… von Samuel Aguilera 2K+ ★★★★★★★★★★ 4.6 (8) Vor 2 Jahren 41
5 Upload SVG Upload SVG Safely enable SVG uploads with sanitization and prevent XML/SVG vulnerabilities on your… by html5maps 1K+ ★★★★★★★★★★ 5 (2) Vor 1 Monat 73
6 BEA – Sanitize Filename BEA – Sanitize Filename Remove all punctuation and accents from the filename of uploaded files. by BE API 1K+ ★★★★★★★★★★ 5 (4) Vor 8 Monaten 56
7 WP Sanitize Accented Uploads WP Sanitize Accented Uploads Simple plugin which removes accented characters from uploaded files. by Onni Hakala 800+ ★★★★★★★★★★ 5 (2) Vor 11 Jahren 34
8 MD5 Media Renamer MD5 Media Renamer Sanitize and rename automatically media files during upload using PHP time() as prefix and… by neoslab 400+ ★★★★★★★★★★ 5 (3) Vor 13 Jahren 34
9 Healthy filenames Healthy filenames Automatically clean the filenames. by Kantari Samy 200+ ★★★★★★★★★★ Keine Bewertungen Vor 2 Monaten 65
10 Space Remover Space Remover Space Remover removes any leading or trailing spaces from your post and page content… by mgwe 100+ ★★★★★★★★★★ 4.7 (3) Vor 10 Jahren 31

Fragen und Antworten

CodePros SVG Secure Support: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: WordPress.org

Is CodePros SVG Secure Support free?

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

Is CodePros SVG Secure Support safe to use in 2026?

CodePros SVG Secure Support works, but test it on a staging site before relying on it in 2026. Was last updated 6 months ago, and scores 49/100 on our health check.

How many websites use CodePros SVG Secure Support?

CodePros SVG Secure Support is active on <10 WordPress websites and has been downloaded 361 times since it launched in June 2026. It was downloaded 81 times in the last 30 days.

Does CodePros SVG Secure Support work with WordPress 7.1?

CodePros SVG Secure Support is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.

What PHP version does CodePros SVG Secure Support need?

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

When was CodePros SVG Secure Support last updated?

The latest version, 1.0.0, was released on June 15, 2026 (6 months ago).

Who makes CodePros SVG Secure Support?

CodePros SVG Secure Support is developed and maintained by codeprosai.

What are the best alternatives to CodePros SVG Secure Support?

The most popular alternatives to CodePros SVG Secure Support are Easy SVG (40K+ installs), Clean Image Filenames (30K+ installs) and Filenames to latin (8K+ installs).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen