svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
3.3.5 is the newest release of 3.x.
In short
7 fixed1 internal
Security
4 advisories affect 3.0.5; 3.3.5 fixes them
- HighSVGO: removeScripts allows executable links through namespace and control-character bypassesGHSA-w27v-7q3p-w38r · 8 Sep 2026Fixed in 3.3.5
- HighSVGO removeScripts plugin leaves some executable scripts intactGHSA-2p49-hgcm-8545 · 21 Jul 2026Fixed in 3.3.4
- HighSVGO DoS through entity expansion in DOCTYPE (Billion Laughs)GHSA-xpqw-6gx7-v673 · 4 Mar 2026Fixed in 3.3.3
- ModerateSVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsGHSA-4vpr-x523-8j87 · 8 Sep 2026Fixed in 3.3.5
Release note
What's Changed
Bug Fixes
cleanupIds, correctly handle references to other nodes in animations.
convertPathData, fix issue when removing redundant
Zbetween mergableM/mcommands.convertPathData, adhere to error/precision in
zconversions.removeEmptyContainers, skip if parent node is
<switch>, as empty containers can be used for attributes likerequiredFeatures.removeHiddenElems, when removing a hidden definition, also remove nodes that reference it.
Output the optimization stats (profit) in red if the file size increased.
Type definition files now correctly use the
.d.tsfile extension instead of.ts.
Metrics
Before and after using vectors from various sources, with the default preset of each respective version:
| SVG | Original | v3.0.4 | v3.0.5 | Delta |
|---|---|---|---|---|
| Arch Linux Logo | 9.529 KiB | 4.735 KiB | 4.608 KiB | ⬇️ 0.127 KiB |
| Blobs | 50.45 KiB | 42.949 KiB | 42.949 KiB | |
| Isometric Madness | 869.034 KiB | 550.593 KiB | 550.153 KiB | ⬇️ 0.44 KiB |
| tldr-pages Banner | 2.071 KiB | 1.07 KiB | 1.07 KiB | |
| Wikipedia Logo | 161.551 KiB | 117.152 KiB | 117.146 KiB | ⬇️ 0.006 KiB |
Before and after of the browser bundle of each respective version:
| v3.0.4 | v3.0.5 | Delta | |
|---|---|---|---|
| svgo.browser.js | 656.9 kB | 657.5 kB | ⬆️ 0.6 kB |
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.