svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 4.0.0 to 4.0.1
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 1
- advisory fixed
- 2
- new
- 2
- fixes
Security
3 advisories still affect 4.0.1
- 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 4.1.0 clears them.
Fixes 1 advisory affecting 4.0.0
- SVGO DoS through entity expansion in DOCTYPE (Billion Laughs)high · GHSA-xpqw-6gx7-v673
Release by release
- New
convertPathData, refactor to reduce redundant equality checks.
- New
removeHiddenElems, compute styles lazily.
- Fixed
removeEmptyContainers, removed leftover
<use>elements referencing an empty container that were removed. - Fixed
removeUnknownsAndDefaults, don't remove attributes if they're referenced in attribute selectors (CSS).
- New
2 other lines we could not sort, mostly version bumps
- 4.0.1
Plugins no longer include if they are enabled or disabled by default, as this was written inconsistently. The
--show-pluginsargument appends the presets a plugin is in to the end of the line. - 4.0.1
Plugin/preset types to enforce the name start with
preset-if it is a preset (collection of plugins).
1 internal line (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.