svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
1.3.2 is the newest release of 1.x.
In short
4 new4 fixed4 changed
Security
3 advisories affect 1.3.0; 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
Custom plugins now can be loaded from external js through
pathplugin param.New plugin
convertEllipseToCircleto convert ellipse with equal radius measures to circleNew plugin
sortDefsChildrenfor improved compressionSVGO now removes unnecessary spaces after
arctopath command flags.removeDimensionsplugin now addsviewBoxif it's missingFixed
removeUnusedNSnot counting attributes in<svg>tag itself.Fixed an issue with incorrect processing multiple images
Fixed an error with incorrect converting multiple segmented curve to an arc.
Fixed an error with matrix decomposition in
convertTransformdue to rounding error leading to illegal value.Added
forceoption formergePathspluginAdded options to
prefixIdsplugin for selectively prefixing IDs and/or classesExported config function
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.