svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
2.8.4 is the newest release of 2.x.
In short
6 fixed2 changed
Security
3 advisories affect 2.0.3; 2.8.4 fixes them
- HighSVGO: removeScripts allows executable links through namespace and control-character bypassesGHSA-w27v-7q3p-w38r · 8 Sep 2026Fixed in 2.8.4
- HighSVGO removeScripts plugin leaves some executable scripts intactGHSA-2p49-hgcm-8545 · 21 Jul 2026Fixed in 2.8.3
- ModerateSVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsGHSA-4vpr-x523-8j87 · 8 Sep 2026Fixed in 2.8.4
Release note
Reduced browser build size 1450kB -> 820kB (82778c8)
Fixed adding empty
<defs>by reusePaths plugin (#1201)Fixed reporting parsing errors (ea82cc2)
Fixed convertEllipseToCircle plugin when
rxorryattributes are not specified (7f4e052)Fixed removing mask-type on
<mask>(4490d62)Fixed removing elements when class is empty in removeElementsByAttr plugin (d9f68d3)
Disable removing spaces in
<path>by default to support many broken non-browser environments (#1353)Fixed error message in addAttributesToSVGElement plugin (c1edce4)
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.