Packages

svgo

4.1.0 · 24 Aug 2026MIT52.3M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.2

11 Jul 2026Where it was published

4.1.0 is the newest release of 4.x.

In short

1 security1 faster5 fixed1 changed

Security

Fixes 1 advisory that affected 4.0.1

2 advisories affect 4.0.2; 4.1.0 fixes them

Release note

What's Changed

Security

  • Security

    removeScripts, remove JavaScript URIs case-insensitively and make <script> handling namespace aware.

Bug Fixes

  • convertColors, skip case-normalization for CSS custom properties.

  • convertPathData, improve handling of consecutive t commands.

  • convertPathData, safer handling of paths.

  • Improve parsing of negative (or +) arc radii.

  • When converting to a data URI, only encode it as a data URI once.

Performance

Other Changes

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.