svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 1.1.0 to 1.3.2
7 releases in betweenevery note read
Reading releases, release notes and advisories…
Security
3 advisories still affect 1.3.2
- SVGO removeScripts plugin leaves some executable scripts intacthigh · GHSA-2p49-hgcm-8545
- SVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsmoderate · GHSA-4vpr-x523-8j87
- SVGO: removeScripts allows executable links through namespace and control-character bypasseshigh · GHSA-w27v-7q3p-w38r
Upgrading to 2.8.4 clears them.
- 1.2.2
Update js-yaml for Code Injection warning
- 1.2.1
Bump up js-yaml version to fix DoS vulnerability
Release by release
1.3.1 – 1.3.22 releases, nothing new or fixed in the notes
- New
New plugin
convertEllipseToCircleto convert ellipse with equal radius measures to circle - New
New plugin
sortDefsChildrenfor improved compression - New
Added
forceoption formergePathsplugin - New
Added options to
prefixIdsplugin for selectively prefixing IDs and/or classes
- New
- Security
Update js-yaml for Code Injection warning
- Security
- Security
Bump up js-yaml version to fix DoS vulnerability
- Security
- New
Added
--recursiveoption to process folders recursevely with option-f - New
Added
removeAttributesBySelectorplugin to remove elements matching a css selector - New
Added
removeOffCanvasPathsplugin to remove elements outside of the viewbox - New
Added
reusePathsplugin to replace duplicated elements with link - New
Added support of comma-separated plugins list in
--disableand--enableoptions - New
Added option to preserve IDs based on prefix in
cleanupIDsplugin - Fixed
Fixed extra blank lines when processing many files
- New
- Fixed
Fixed crash in
SVGO.optimize()when ‘info’ is absent.
- Fixed
11 other lines we could not sort, mostly version bumps
- 1.3.2
Fixed TypeError: Cannot set property 'multipassCount' of undefined
- 1.3.1
Updated CSSO version to 4.0.2 fixing the issue with empty semicolons ";;" in styles (thanks to @strarsis and @lahmatiy).
- 1.3.1
prefixIdsplugin now runs only once with--multipassoption - 1.3.1
cleanupIDsplugin is prevented from producing a preserved ID, including one which matches a preserved prefix, when minifying - 1.3.0
Custom plugins now can be loaded from external js through
pathplugin param. - 1.3.0
SVGO now removes unnecessary spaces after
arctopath command flags. - 1.3.0
removeDimensionsplugin now addsviewBoxif it's missing - 1.3.0
Exported config function
- 1.2.0
removeAttrsplugin: addedpreserveCurrentColorcolor - 1.2.0
Replaced
colorsdependency withchalk
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.