- Time
- 0 ms
- Memory
- 0.0 MB
- SQL
- +6
About
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.
Initially a proof of concept for #24251.
Read more Show less
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.
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.
Description published by 10up on WordPress.org, licensed under GPL-2.0-or-later.
Per-version history
Show per-version detail (1 version)
Per-version history
Show per-version detail (1 version)
How the plugin evolves version by version.
| Version | Homepage | Admin | Last scan |
|---|---|---|---|
| v2.5.2 | 1 scan | — | 1 week ago |
Alternatives in the same category
Other security plugins measured by the community, ranked from lightest to heaviest.
Not enough scans yet to publish the score (1 received).
Not enough scans yet to publish the score (1 received).
Not enough scans yet to publish the score (1 received).
Not enough scans yet to publish the score (3 received).
Not enough scans yet to publish the score (4 received).
Scan history
Show individual scan log (1 scans)
Scan history
Show individual scan log (1 scans)
| Date | Version | Context | Score | Grade | Time | Memory |
|---|---|---|---|---|---|---|
| 1 week ago | v2.5.2 | Homepage | 100/100 | A | 216 ms | 0.0 MB |