npm svgo 2.8.4
v2.8.4

latest release: 4.1.0
2 hours ago

What's Changed

Security

  • Backport the removeScriptElement hardening from SVGO v4 in #2272:
    • remove known SVG event attributes
    • reject executable data: URLs and legacy vbscript: URLs
    • sanitize executable HTML inside <foreignObject> elements
    • handle namespace-prefixed SVG anchors and URL schemes containing ASCII tabs or newlines

This addresses GHSA-4vpr-x523-8j87 and GHSA-w27v-7q3p-w38r for the v2 release line.

Support

SVGO v2 is not officially supported; please consider upgrading to SVGO v4. This security fix has been backported, but there is no commitment to backport more complex changes in the future.

See the migration guides from v2 to v3 and v3 to v4.

Don't miss a new svgo release

NewReleases is sending notifications on new releases.