Packages

svgo

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

Your version

Where each line stands

Plan an upgrade
  • 4.x4.1.0Safe from 4.1.0Latest line
  • 3.x3.3.5Safe from 3.3.5To 4.1.0
  • 2.x2.8.4Safe from 2.8.4To 4.1.0
  • 1.x1.3.23 open advisories, worst high · last release Oct 2019, no longer updatedTo 4.1.0
  • 0.x0.7.2No known advisoryTo 4.1.0

Latest releases

All 107 releases
  1. 4.x · latest line
  2. 4.1.0

    24 Aug 2026
    • Security

      Filters executable data: URLs containing HTML, XHTML, or SVG documents while preserving inert data such as PNG images, and filters legacy vbscript: URLs (#2263).

    • Security

      Sanitizes content inside SVG <foreignObject> elements by removing HTML event-handler attributes, srcdoc, and executable URLs from action, data, formaction, href, and src, while preserving non-executable HTML and visual content (#2264).

    • Security

      Recognizes namespace-prefixed SVG <a> elements and removes ASCII tabs and newlines before checking URL schemes, preventing values such as java&#9;script: from bypassing detection while preserving elements in unrelated custom namespaces (#2268).

  3. 4.0.2

    11 Jul 2026
    • Security

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

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

    • convertPathData, improve handling of consecutive t commands.

  4. 4.0.1

    4 Mar 2026

Dependency tracking

Know when your own dependencies move

svgo had 4 security advisories in the last 12 months. inlinr emails you the day one touches a project of yours, with the version that fixes it.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Reading releases, release notes and advisories…

Registry facts last checked 21 Nov 2026. Releases and advisories last read 21 Nov 2026.

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.