Packages

svgo

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

Upgrading svgo From 4.0.2 to 4.1.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

  1. 4.0.2yours
  2. 4.1.0target
0
changes to make
2
advisories fixed
0
new
0
fixes

Security

  • It also includes important security hardening for removeScripts, dependency updates, and improvements to the test and regression infrastructure.

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

    4.1.0
  • 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).

    4.1.0
  • 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).

    4.1.0
  • 4.1.0
  • 4.1.0
3 other lines we could not sort, mostly version bumps
  • Disallowed control characters such as &#1;, &#xB;, and &#x1F;;

    4.1.0
  • UTF-16 surrogate code points such as &#xD800;;

    4.1.0
  • Invalid XML code points such as &#xFFFF;.

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