svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 3.0.4 to 3.0.5
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 7
- fixes
Security
4 advisories still affect 3.0.5
- 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
- Fixed
cleanupIds, correctly handle references to other nodes in animations.
- Fixed
convertPathData, fix issue when removing redundant
Zbetween mergableM/mcommands. - Fixed
convertPathData, adhere to error/precision in
zconversions. - Fixed
removeEmptyContainers, skip if parent node is
<switch>, as empty containers can be used for attributes likerequiredFeatures. - Fixed
removeHiddenElems, when removing a hidden definition, also remove nodes that reference it.
- Fixed
Output the optimization stats (profit) in red if the file size increased.
- Fixed
Type definition files now correctly use the
.d.tsfile extension instead of.ts.
- Fixed
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.