svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 1.3.2 to 2.8.4
20 releases in betweenevery note read
Reading releases, release notes and advisories…
Start here
Before you upgrade
Tick each one off as you go- Breaking2.8.4
- Breaking2.4.0
- Breaking2.0.0
Security
Fixes 3 advisories affecting 1.3.2
- 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
- 2.8.4
This addresses GHSA-4vpr-x523-8j87 and GHSA-w27v-7q3p-w38r for the v2 release line.
- 2.8.4
This security fix has been backported, but there is no commitment to backport more complex changes in the future.
- 2.8.3
removeScriptElement, make
<script>handling namespace aware. - 2.3.1
Fixed vulnerability in css-select dependency (#1485)
Release by release
- Security
This addresses GHSA-4vpr-x523-8j87 and GHSA-w27v-7q3p-w38r for the v2 release line.
- Security
This security fix has been backported, but there is no commitment to backport more complex changes in the future.
- Breaking
Remove known SVG event attributes
- Fixed
Handle namespace-prefixed SVG anchors and URL schemes containing ASCII tabs or newlines
- Security
- Security
removeScriptElement, make
<script>handling namespace aware.
- Security
- Fixed
No longer throws error when encountering comments in DTD.
- Fixed
2.8.1nothing new or fixed in the note
47 other lines we could not sort, mostly version bumps
- 2.8.4
Reject executable
data:URLs and legacyvbscript:URLs - 2.8.4
Sanitize executable HTML inside
<foreignObject>elements - 2.8.0
Simplified and covered with types svg stringifier (#1593)
- 2.8.0
Migrated to visitor api and covered with types removeEmptyAttrs plugin (#1594)
- 2.8.0
Migrated to visitor api and covered with types inlineStyles plugin (#1601)
- 2.8.0
Migrated to picocolors (#1606)
- 2.7.0
collapseGroups (#1572)
- 2.7.0
mergeStyles (#1575)
- 2.7.0
moveElemsAttrsToGroup (#1574)
- 2.7.0
Covered svg parser with tsdoc (#1584)
32 internal lines (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.