Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
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 applicationsUpgrade svgo to version 2.8.3, 3.3.4, 4.0.2 or higher.
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.
This vulnerability can be mitigated by using a dedicated SVG sanitization tool before processing SVG files.