Packages

svgo

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

Upgrading svgo From 3.2.0 to 3.3.5

6 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.2.0Latest4.1.0
  1. 3.2.0yours
  2. 3.3.0breaking
  3. 3.3.1breaking
  4. 3.3.2breaking
  5. 3.3.3
  6. 3.3.4security
  7. 3.3.5target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking3.3.2
  • Breaking3.3.2
  • Breaking3.3.1
  • Breaking3.3.0
  • Deprecated3.3.0

Security

  • 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.5
  • removeScriptElement, remove JavaScript URIs case-insensitively and make <script> handling namespace aware.

    3.3.4

Release by release

  1. 3.3.5

    Security fix24 Aug 20261 fix
    • 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

  2. 3.3.4

    Security fix11 Jul 2026
    • Security

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

  3. 3.3.3

    4 Mar 20261 fix
    • Fixed

      No longer throws error when encountering comments in DTD.

  4. 3.3.2

    Migration needed9 May 2024
    • 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 removeViewBox by default.

  5. 3.3.1

    Migration needed8 May 2024
    • Breaking

      I apologize for letting that breaking change through, and will aim to do better.

  6. 3.3.0

    Migration needed8 May 202413 fixes
    • Breaking

      This release introduced breaking changes, which have been reverted in v3.3.2.

    • Deprecated

      removeDeprecatedAttrs, new plugin that is disabled by default to remove SVG attributes that are deprecated.

    • Fixed

      cleanupIds, treat both URI encoded and non-URI encoded IDs as the same.

    • Fixed

      collapseGroups, check styles as well as attributes.

4 other lines we could not sort, mostly version bumps
  • Reject executable data: URLs and legacy vbscript: URLs

    3.3.5
  • Sanitize executable HTML inside <foreignObject> elements

    3.3.5
  • convertColors, now converts all references to colors excluding references to IDs to lowercase. This can be disabled by setting convertCase to false.

    3.3.0
  • convertColors, introduce parameter to convert colors to common casing (lowercase/uppercase).

    3.3.0

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.