svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
4.1.0 is the newest release of 4.x.
In short
1 security1 faster5 fixed1 changed
Security
Fixes 1 advisory that affected 4.0.1
- HighSVGO removeScripts plugin leaves some executable scripts intactGHSA-2p49-hgcm-8545 · 21 Jul 2026Fixed in 4.0.2
2 advisories affect 4.0.2; 4.1.0 fixes them
- HighSVGO: removeScripts allows executable links through namespace and control-character bypassesGHSA-w27v-7q3p-w38r · 8 Sep 2026Fixed in 4.1.0
- ModerateSVGO: removeScripts incompletely sanitizes executable HTML in SVG foreignObject elementsGHSA-4vpr-x523-8j87 · 8 Sep 2026Fixed in 4.1.0
Release note
What's Changed
Security
- Security
removeScripts, remove JavaScript URIs case-insensitively and make
<script>handling namespace aware.
Bug Fixes
convertColors, skip case-normalization for CSS custom properties.
convertPathData, improve handling of consecutive
tcommands.convertPathData, safer handling of paths.
Improve parsing of negative (or +) arc radii.
When converting to a data URI, only encode it as a data URI once.
Performance
mergePaths, speed up child node removal.
Other Changes
removeAttributesBySelector, log warning and noop if missing parameters.
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.