3 ms·
If linked via an <img> tag, browsers will run the SVG in a script-less context. The problem is direct linking, then you have a potential XSS. Here it’s the CSP
by masklinn 3y ago
If linked via an <img> tag, browsers will run the SVG in a script-less context. The problem is direct linking, then you have a potential XSS.
Here it’s the CSP directive (Content-Security-Policy: script-src ‘none’) which is neutering it, as indicated by the comment your got the SVG from.
However from what I remember of my experiments script-src none can severely degrade SVGs even though they don’t use JS, because it affects some styling.