svgo
4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed
Upgrading svgo From 3.0.3 to 3.0.4
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 0
- changes to make
- 0
- advisories fixed
- 0
- new
- 5
- fixes
Security
4 advisories still affect 3.0.4
- 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
Upgrading to 3.3.5 clears them.
Release by release
- Fixed
convertPathData, ignore instances where transform applied via style tag.
- Fixed
inlineStyles, inline properties with the same specificity in the order that they appear in the stylesheet.
- Fixed
inlineStyles, don't remove class or id from node if it's traversed in another CSS selector.
- Fixed
Don't trim
preelements inforeignObject. - Fixed
Don't crash when encountering
@-webkit-keyframesin<style>node.
- Fixed
4 other lines we could not sort, mostly version bumps
- 3.0.4
removeXMLNS, no longer removes the XLink (
xmlns:xlink) namespace. If that is desirable, you should enable the new removeXlink plugin, which does more while being safer. - 3.0.4
convertPathData, convert to
zcommand if going back to initial position, or dropzif redundant. - 3.0.4
inlineStyles, when inlining a CSS property that's already declared in a presentation attribute of the node, drop the attribute.
- 3.0.4
removeXlink, new plugin that removes the XLink (
xmlns:xlink) namespace and migrates from XLink attributes to the SVG 2 equivalent. Disabled by default.
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.