svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 3.3.0 to 3.3.5
5 releases in betweenevery note read
Reading releases, release notes and advisories…
Start here
Before you upgrade
Tick each one off as you go- Breaking3.3.2
- Breaking3.3.2
- Breaking3.3.1
Security
Fixes 4 advisories affecting 3.3.0
- 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
- SVGO DoS through entity expansion in DOCTYPE (Billion Laughs)high · GHSA-xpqw-6gx7-v673
- 3.3.5
This addresses GHSA-4vpr-x523-8j87 and GHSA-w27v-7q3p-w38r for the v3 release line.
- 3.3.5
This security fix has been backported, but there is no commitment to backport more complex changes in the future.
- 3.3.4
removeScriptElement, remove JavaScript URIs case-insensitively and make
<script>handling namespace aware.
Release by release
- Security
This addresses GHSA-4vpr-x523-8j87 and GHSA-w27v-7q3p-w38r for the v3 release line.
- Security
This security fix has been backported, but there is no commitment to backport more complex changes in the future.
- Fixed
Handle namespace-prefixed SVG anchors and URL schemes containing ASCII tabs or newlines
- Security
- Security
removeScriptElement, remove JavaScript URIs case-insensitively and make
<script>handling namespace aware.
- Security
- Fixed
No longer throws error when encountering comments in DTD.
- Fixed
- Breaking
This effectively made SVGO v3 a breaking change.
- Breaking
We'll then proceed to work on releasing v4 which will document the breaking changes, and feature further breaking changes that were slated for v4, like disabling
removeViewBoxby default.
- Breaking
- Breaking
I apologize for letting that breaking change through, and will aim to do better.
- Breaking
2 other lines we could not sort, mostly version bumps
- 3.3.5
Reject executable
data:URLs and legacyvbscript:URLs - 3.3.5
Sanitize executable HTML inside
<foreignObject>elements
1 internal line (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.