Free in EMCP Tools
  • Free
  • Off by default

SVG uploads, cleaned before they are saved.

WordPress blocks SVG files because they can carry scripts. SVG Uploads allows them and cleans every file first, removing scripts, event handlers and external references. A file that cannot be cleaned is refused.

1
setting: administrators only
0
unclean files saved
Free
off until you switch it on
EMCP Modules screen with the SVG Uploads card switched on and its description of how files are cleaned.
Cleaning

Every SVG is checked, every time.

Files are cleaned with the same open-source sanitizer library the Safe SVG plugin uses. Scripts, event handlers, javascript: links and remote references are removed. If the file is malformed, or the sanitizer is missing, the upload is refused: it fails closed, never open.

Who can upload

Limit SVGs to administrators.

By default anyone who can upload files can upload SVGs. Switch on Administrators only to limit them to administrators. Developers can choose another capability with the emcp_tools_svg_upload_capability filter.

For AI agents

Agents can import SVG icons too.

With the module on, SVGs that agents import through the media tools pass WordPress’s file type check and are cleaned the same way. SVG thumbnails show properly in the Media Library.

  • It is off by default. Switch it on in Setup → Modules.
  • Sites using Elementor usually do not need it: Elementor already allows SVG uploads for authorised users.
Frequently asked

Questions, answered.

Still stuck? Drop a line at [email protected] or open an issue on GitHub. Most replies are under one business day; Pro tiers go to the front of the queue.

Open the full docs
Why is it off by default?
An SVG file can carry scripts, so you choose to allow them.
Do I need it if I use Elementor?
Usually not. Elementor already allows SVG uploads for authorised users. This module is mainly for sites without Elementor.
What gets removed?
Scripts, event handlers, javascript: links and external references.
What happens to an SVG that cannot be cleaned?
It is refused and never saved.
Can I limit SVG uploads to administrators?
Yes, with the Administrators only setting.

Use SVG without the risk.

Install EMCP Tools free and switch on SVG Uploads in Setup → Modules.

Your EMCP guide

Answers from our docs

YOUR CHAT, YOUR CHOICE

Before we chat

MSR Builds processes your question and up to four recent messages on our server to answer from the EMCP docs. AI is optional and needs your separate permission.

The chat is kept in this page's memory, not saved as a conversation in our database or browser storage. Our hosting and security services process connection information, such as your IP address, to prevent abuse.

Cloudflare Turnstile checks your browser and connection to prevent automated abuse when you send a question. No login is required.

Please leave out personal, sensitive or confidential information, passwords and API keys.

You can withdraw consent and clear this page's chat at any time. This cannot undo a request already sent or erase provider/security records.

Chat privacy, retention & your rights ↗ · Privacy contact

Starting chat consents to this processing. You can browse our docs without using the chat.