svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
In short
1 removed2 security1 fixed2 changed
- Removed
Remove known SVG event attributes
Security
Fixes 2 advisories that affected 2.8.3
- HighSVGO: removeScripts allows executable links through namespace and control-character bypassesGHSA-w27v-7q3p-w38r · 8 Sep 2026Fixed in 2.8.4
- ModerateSVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsGHSA-4vpr-x523-8j87 · 8 Sep 2026Fixed in 2.8.4
Release note
What's Changed
Security
- Security
Backport the
removeScriptElementhardening from SVGO v4 in #2272:remove known SVG event attributes
reject executable
data:URLs and legacyvbscript:URLssanitize executable HTML inside
<foreignObject>elementshandle 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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.