svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 4.0.1 to 4.0.2
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 1
- advisory fixed
- 1
- new
- 5
- fixes
Security
2 advisories still affect 4.0.2
- 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.1
- SVGO removeScripts plugin leaves some executable scripts intacthigh · GHSA-2p49-hgcm-8545
- 4.0.2
removeScripts, remove JavaScript URIs case-insensitively and make
<script>handling namespace aware.
Release by release
- Security
removeScripts, remove JavaScript URIs case-insensitively and make
<script>handling namespace aware. - New
mergePaths, speed up child node removal.
- Fixed
convertColors, skip case-normalization for CSS custom properties.
- Fixed
convertPathData, improve handling of consecutive
tcommands. - Fixed
convertPathData, safer handling of paths.
- Fixed
Improve parsing of negative (or +) arc radii.
- Fixed
When converting to a data URI, only encode it as a data URI once.
- Security
1 other line we could not sort, mostly version bumps
- 4.0.2
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.