svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 3.0.2 to 3.0.3
1 release in betweenevery note read
Reading releases, release notes and advisories…
Security
4 advisories still affect 3.0.3
- 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
- SVGO DoS through entity expansion in DOCTYPE (Billion Laughs)high · GHSA-xpqw-6gx7-v673
Upgrading to 3.3.5 clears them.
Release by release
- New
Various optimizations for path handling.
- Fixed
removeRasterImages, removes inline JPEG images.
- Fixed
cleanupIds, correctly handle when 2 IDs have been referenced in a single attribute.
- Fixed
cleanupIds, correctly handle when we've encountered a reference to a node that doesn't exist.
- New
5 other lines we could not sort, mostly version bumps
- 3.0.3
removeComments, introduces
preservePatternsparameter. Preserves legal comments by default, same as the previous behavior, but can now be overridden. - 3.0.3
removeDesc, set the
removeAnyparameter tofalseby default for accessibility. - 3.0.3
convertTransform, omit spaces between functions.
- 3.0.3
removeScriptElement, removes callbacks (
on*) andhrefattributes withjavascript:URIs. - 3.0.3
convertOneStopGradients, new plugin to convert gradients with one stop to a solid color, disabled by default.
3 internal lines (docs, tests, tooling) left out.
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.