Packages

svgo

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

Upgrading svgo From 1.3.2 to 2.8.4

20 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.3.2Latest4.1.0
  1. 1.3.2yours
  2. 2.0.0major
  3. 8 releases
  4. 2.3.1security
  5. 2.4.0breaking
  6. 7 releases
  7. 2.8.3security
  8. 2.8.4target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking2.8.4
  • Breaking2.4.0
  • Breaking2.0.0

Security

  • 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.4
  • removeScriptElement, make <script> handling namespace aware.

    2.8.3
  • Fixed vulnerability in css-select dependency (#1485)

    2.3.1

Release by release

  1. 2.8.4

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

  2. 2.8.3

    Security fix11 Jul 2026
  3. 2.8.2

    4 Mar 20261 fix
    • Fixed

      No longer throws error when encountering comments in DTD.

  4. 2.8.1nothing new or fixed in the note

  5. 2.8.0

    2 Nov 20214 new
    • New

      Added --no-color flag for testing purposes but you may find it useful (#1588)

    • New

      Handle url() in style attributes properly (#1592)

    • New

      removeXMLNS plugin now removes xmlns:xlink attribute (#1508)

    • New

      Load .cjs configuration only with require to fix segfaults in linux (#1605)

  6. 2.7.0

    23 Sep 20211 new
    • New

      Added validation to removeAttrs plugin (#1582)

  7. 2.6.1

    15 Sep 20211 new · 1 fix
    • New

      Added missing filter primitives to collections (#1571)

    • Fixed

      Fixed optimize(svg) usage without config (#1573)

  8. 2.6.0

    13 Sep 20211 new · 8 fixes
    • New

      Add xmlns:xlink in reusePaths plugin when missing (#1555)

    • Fixed

      reusePaths (#1551)

    • Fixed

      removeUselessStrokeAndFill (#1549)

    • Fixed

      minifyStyles (#1552)

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

    2.8.4
  • Sanitize executable HTML inside <foreignObject> elements

    2.8.4
  • 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.8.0
  • collapseGroups (#1572)

    2.7.0
  • mergeStyles (#1575)

    2.7.0
  • moveElemsAttrsToGroup (#1574)

    2.7.0
  • Covered svg parser with tsdoc (#1584)

    2.7.0

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.