Packages

svgo

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

Upgrading svgo From 1.2.0 to 2.8.4

25 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.2.0Newest 1.x1.3.2Latest4.1.0
  1. 1.2.0yours
  2. 1.2.1security
  3. 1.2.2security
  4. 3 releases
  5. 2.0.0major
  6. 8 releases
  7. 2.3.1security
  8. 2.4.0breaking
  9. 7 releases
  10. 2.8.3security
  11. 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
  • Update js-yaml for Code Injection warning

    1.2.2
  • Bump up js-yaml version to fix DoS vulnerability

    1.2.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)

55 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.