What the SVG policy actually blocks
Plathix offers one SVG policy for the whole site: clean on upload, block SVG, or leave it to another plugin. These checks upload ordinary and hostile SVG files against the policies, the allowed-role list and strict safe mode, then open the saved file to see what is left. Seven checks passed; re-runs are scheduled for the other two. Related rows of the regression suite are listed below them.
The claim we are testing
“Plathix Free lets trusted roles upload SVG to the WordPress Media Library and cleans risky code as the file comes in.”
Why this is worth testing
SVG is XML, and XML can carry script. A plugin that says it cleans SVG has to be judged on what ends up in the saved file, not on the fact that it has a sanitizer. So the checks open each saved file after upload and look for what should be gone, and they also send the files that should be refused.
What we check
- Upload a clean SVG with the default policy and look at the preview in the Media Library.
- Upload SVG files with <script>, onload and onclick, then open the saved file directly in the browser.
- Upload ten SVG files in one go, some of them hostile, and watch the Media Library.
- Turn on strict safe mode and upload files with external <use> / <image> references and with a <style> block.
- Upload a file with broken XML and a compressed SVGZ file.
- Upload as roles outside the allowed list: Editor, then Author.
- Switch the policy to Block, upload a new SVG and check the SVG files already in the library.
- Send an SVG through the sideload path and the REST API with the file in the request body.
- Set an SVG as the featured image of a post and a page and open the published pages.
Results
| What we checked | Result |
|---|---|
| Clean SVG upload + preview | Passed — uploads with the default policy; real preview in the grid |
| Script / onload / onclick | Passed — removed; the file is accepted and nothing runs when it is opened |
| 10-file mixed batch | Passed — the hostile files were saved cleaned; no errors in the interface |
| Strict mode | Passed — files with external <use> / <image> and with <style> were rejected |
| Broken XML + SVGZ | Passed — a clear error message, no blank screen |
| Role controls | Passed — Editor and Author outside the list were refused |
| Block policy | Passed — new SVG refused; SVG files already uploaded stay and display |
| Sideload / raw REST paths | Scheduled — the fix is ready in the code and comes with the next release; a live run is scheduled |
| Featured image output | Scheduled — a re-check on a clean site is scheduled |
Earlier regression checks
SVG is also part of the Free regression suite that runs before a release. These are its related checks with the latest result, from the runs of 18 Aug and 9 Sep 2026 with Plathix Free 1.0.0.
| What we checked | Result |
|---|---|
| With no roles selected, nobody can upload SVG, administrators included | Passed |
| A Subscriber is stopped by WordPress before the SVG check | Passed — the role has no upload permission |
| SVG preview in the Media Library list view | Passed |
| System Info shows the SVG sanitizer as available | Passed |
| Rejection log entries carry no e-mail or IP address | Passed |
| Rejected uploads are written to the server error log | Scheduled — fixed on 21 Sep 2026; a re-check on the current build is scheduled |
How we tested
Latest runs: the Free regression runs of 18 Aug and 9 Sep 2026 on live WordPress sites with Plathix Free 1.0.0 (WordPress 7.1 on 9 Sep), and the pilot run of 16 Aug 2026 for the script check.
Known limits
- A successful upload does not report what was removed.
- Strict safe mode rejects any SVG with a <style> block, including harmless ones.
- SVG files over 2 MB and compressed SVGZ files are not accepted.
- In Plathix 1.0.0 some sideload and import routes do not pass through the sanitizer.
Not covered yet
- Uploads through XML-RPC and the WordPress importer.
- WP-CLI media import.
- Strict safe mode as the default on multisite.
- SVG through Replace Media and the 2 MB limit.
- PRO role levels and personal access overrides applied to SVG.
- Real Illustrator and Figma exports in strict safe mode.
Related
Test it on your own site
Plathix Free installs in a minute and deactivates cleanly. Your library is the only benchmark that counts.