CyberRota Analysis
AI-GeneratedThe removeScripts plugin in the SVGO library for Java, specifically in versions up to 2.8.3, 3.3.4, and 4.0.2, is vulnerable as it fails to adequately remove certain script elements from optimized SVG files, potentially allowing the execution of malicious scripts. This vulnerability can lead to unauthorized access to local storage or cookies when untrusted SVG files are processed and served. Developers and organizations utilizing SVGO for SVG optimization should prioritize updating to the patched versions to mitigate this security risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. From version 1.0.0 until versions 2.8.3, 3.3.4, and 4.0.2, the removeScripts plugin, named removeScriptElement in versions 1 through 3, can leave executable content in optimized SVGs because it does not remove namespaced or prefixed script elements such as <svg:script> and, in versions 3 and 4, matches JavaScript URIs case sensitively. Applications that process untrusted SVG input with this plugin enabled and serve the result can allow scripts to execute when another user opens the SVG, exposing local storage or cookies. This issue is fixed in versions 2.8.3, 3.3.4, and 4.0.2.