---
title: "svgo 4.1.0: release notes, upgrades and advisories"
description: "svgo 4.1.0: release notes, breaking changes by major version and 4 known advisories with their fix."
url: https://inlinr.com/packages/svgo
lang: en
---

[Packages](https://inlinr.com/packages)

# svgo

4.1.0 · 24 Aug 2026 MIT 52.3M / week [Repository](https://github.com/svg/svgo) [Homepage](https://svgo.dev/) [npm](https://www.npmjs.com/package/svgo) [Atom feed](https://inlinr.com/packages/feed/svgo)

Your version 

## Where each line stands

[Plan an upgrade](https://inlinr.com/packages/svgo/upgrade)

LineNewestSecurity

- 4.x 4.1.0 Safe from 4.1.0 Latest line
- 3.x 3.3.5 Safe from 3.3.5 [To 4.1.0](https://inlinr.com/packages/svgo/upgrade/3.3.5-4.1.0)
- 2.x 2.8.4 Safe from 2.8.4 [To 4.1.0](https://inlinr.com/packages/svgo/upgrade/2.8.4-4.1.0)
- 1.x 1.3.2 3 open advisories, worst high  · last release Oct 2019, no longer updated [To 4.1.0](https://inlinr.com/packages/svgo/upgrade/1.3.2-4.1.0)
- 0.x 0.7.2 No known advisory [To 4.1.0](https://inlinr.com/packages/svgo/upgrade/0.7.2-4.1.0)

## Latest releases

[All 107 releases](https://inlinr.com/packages/svgo/releases)

1. 4.x · latest line
2. ### [4.1.0](https://inlinr.com/packages/svgo/releases/4.1.0 "Open this release") [](https://github.com/svg/svgo/releases/tag/v4.1.0 "Read this release where it was published")  
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](https://github.com/svg/svgo/pull/2263 "https://github.com/svg/svgo/pull/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](https://github.com/svg/svgo/pull/2264 "https://github.com/svg/svgo/pull/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](https://github.com/svg/svgo/pull/2268 "https://github.com/svg/svgo/pull/2268")).
3. ### [4.0.2](https://inlinr.com/packages/svgo/releases/4.0.2 "Open this release") [](https://github.com/svg/svgo/releases/tag/v4.0.2 "Read this release where it was published")  
11 Jul 2026

  - Security  
  [removeScripts](https://svgo.dev/docs/plugins/removeScripts/ "https://svgo.dev/docs/plugins/removeScripts/"), remove JavaScript URIs case-insensitively and make `<script>` handling namespace aware.
  - [convertColors](https://svgo.dev/docs/plugins/convertColors/ "https://svgo.dev/docs/plugins/convertColors/"), skip case-normalization for CSS custom properties.
  - [convertPathData](https://svgo.dev/docs/plugins/convertPathData/ "https://svgo.dev/docs/plugins/convertPathData/"), improve handling of consecutive `t` commands.
4. ### [4.0.1](https://inlinr.com/packages/svgo/releases/4.0.1 "Open this release") [](https://github.com/svg/svgo/releases/tag/v4.0.1 "Read this release where it was published")  
4 Mar 2026

  - [removeEmptyContainers](https://svgo.dev/docs/plugins/removeEmptyContainers/ "https://svgo.dev/docs/plugins/removeEmptyContainers/"), removed leftover `<use>` elements referencing an empty container that were removed.
  - [removeUnknownsAndDefaults](https://svgo.dev/docs/plugins/removeUnknownsAndDefaults/ "https://svgo.dev/docs/plugins/removeUnknownsAndDefaults/"), don't remove attributes if they're referenced in attribute selectors (CSS).
  - [convertPathData](https://svgo.dev/docs/plugins/convertPathData/ "https://svgo.dev/docs/plugins/convertPathData/"), refactor to reduce redundant equality checks.

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](https://inlinr.com/dependencies)

## Security

[All 4](https://inlinr.com/packages/svgo/security)

- [SVGO: removeScripts allows executable links through namespace and control-character bypasses](https://inlinr.com/advisories/GHSA-w27v-7q3p-w38r) High · fixed in 4.1.0, 3.3.5, 2.8.4
- [SVGO removeScripts plugin leaves some executable scripts intact](https://inlinr.com/advisories/GHSA-2p49-hgcm-8545) High · fixed in 4.0.2, 3.3.4, 2.8.3
- [SVGO DoS through entity expansion in DOCTYPE (Billion Laughs)](https://inlinr.com/advisories/GHSA-xpqw-6gx7-v673) High · fixed in 4.0.1, 3.3.3, 2.8.1

## Health

[Details](https://inlinr.com/packages/svgo/security#signals)

- **Provenance**:
- **Publisher**:
- **Maintainers**:
- **Scorecard**:
- **Size**:

## Weekly downloads

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](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
