svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
2.8.4 is the newest release of 2.x.
In short
6 fixed2 changed
Security
4 advisories affect 2.2.0; 2.8.4 fixes them
- HighSVGO: removeScripts allows executable links through namespace and control-character bypassesGHSA-w27v-7q3p-w38r · 8 Sep 2026Fixed in 2.8.4
- HighSVGO removeScripts plugin leaves some executable scripts intactGHSA-2p49-hgcm-8545 · 21 Jul 2026Fixed in 2.8.3
- HighSVGO DoS through entity expansion in DOCTYPE (Billion Laughs)GHSA-xpqw-6gx7-v673 · 4 Mar 2026Fixed in 2.8.1
- ModerateSVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsGHSA-4vpr-x523-8j87 · 8 Sep 2026Fixed in 2.8.4
Release note
Wow, two minor releases in a row. There is a big reason for that. We got a new logo! See it in readme. Big thanks to @DerianAndre.
There were also implemented brand new path data parser and stringifier (#1378 and #1387) to do more reliable transformations and produce smaller svg.
A cup of small fixes
Fixed optimisation when stroke-linecap=round is specified (7901588)
Prevented transform applying when inline style is present (79dbb4b)
Apply transform to stroke-dasharray and stroke-dashoffset (dd37fcf)
Fixed removing hidden elements when descendant enables visibility (d06747a)
Fixed removing elements with zero opacity inside clipPath (9d67586)
Fixed removing empty mask which can hide elements by id (d14315b)
Fixed removing stroke-width when marker-end is specified (3639156)
Fixed
<tspan>inside<a>(091172a)
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.