svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 0.7.2 to 2.8.4
34 releases in betweenevery note read
Reading releases, release notes and advisories…
- 4
- changes to make
- 0
- advisories fixed
- 33
- new
- 74
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking2.8.4
- Breaking2.4.0
- Breaking2.0.0
- Breaking1.0.0
Security
- 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)
- 1.2.2
Update js-yaml for Code Injection warning
- 1.2.1
Bump up js-yaml version to fix DoS vulnerability
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
73 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.