Incomplete List of Disallowed Inputs Affecting svgo package, versions <2.8.3>=3.0.0 <3.3.4>=4.0.0 <4.0.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SVGO-18170231
  • published22 Jul 2026
  • disclosed21 Jul 2026
  • creditAdmu

Introduced: 21 Jul 2026

New CVE NOT AVAILABLE CWE-184  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade svgo to version 2.8.3, 3.3.4, 4.0.2 or higher.

Overview

Affected versions of this package are vulnerable to Incomplete List of Disallowed Inputs via improper handling of namespaced or prefixed script elements and case-sensitive matching of JavaScript URIs in the removeScripts plugin. An attacker can execute arbitrary scripts in the context of the application by uploading specially crafted SVG files containing executable scripts or JavaScript URIs that bypass sanitization.

Workaround

This vulnerability can be mitigated by using a dedicated SVG sanitization tool before processing SVG files.

CVSS Base Scores

version 4.0
version 3.1