Skip to main content
← All vulnerabilities
CVE-2026-73650GHSA-2P49-HGCM-8545

SVGO: removeScripts plugin leaves some executable scripts intact

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.8.3, 3.3.4, 4.0.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • svg svgo

    From 1.0.0 · fixed in 2.8.3; From 3.0.0 · fixed in 3.3.4; From 4.0.0 · fixed in 4.0.2

  • svgonpm

    From 1.0.0 · fixed in 2.8.3

  • svgonpm

    From 3.0.0 · fixed in 3.3.4

  • svgonpm

    From 4.0.0 · fixed in 4.0.2

References 7

GitHub · svg/svgo