neocotic / convert-svg

Node.js packages for converting SVG into other formats using headless Chromium
MIT License
200 stars 47 forks source link

Remove all disallowed SVG element attributes #85

Closed neocotic closed 2 years ago

neocotic commented 2 years ago

In a further attempt to reduce remote code injection attack vectors, all attributes except for a set of allowed standard attributes are removed from the SVG element before being converted. Deprecated attributes are included by default, however, these can also be removed by disabling the new allowDeprecatedAttributes option.

This PR should fix #84.