Skip to content
Heist/ feed
Back to feed
High

SVGO: removeScripts plugin leaves some executable scripts intact

Type: advisorySources: OSV

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 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-73650
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:08 UTC · Revision 1

Source evidence

SVGO: removeScripts plugin leaves some executable scripts intact

core-osv · Original source

Published 13 Aug 2026, 18:08 UTC

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 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.

osv:CVE-2026-73650
Complete source record
{
  "id": "6727d978d036db09f66ba186d049053e6c102b5c2ad10469b23977d35f4aaeb7",
  "url": "https://osv.dev/vulnerability/CVE-2026-73650",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SVGO: removeScripts plugin leaves some executable scripts intact",
    "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 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.",
    "evidence": "osv:CVE-2026-73650",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-73650",
      "aliases": [
        "CVE-2026-73650",
        "GHSA-2p49-hgcm-8545"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/svg/svgo",
              "type": "GIT",
              "events": [
                {
                  "introduced": "80ed6842ddef601c3b0fd1aa1ceb548f7a211b8d"
                },
                {
                  "fixed": "628e3bc7336625a30365d0a9b60185307d852466"
                },
                {
                  "introduced": "a40fa216b67d297e84ab8017bf4b45b4a0001223"
                },
                {
                  "fixed": "72a23886b4698b27624b936f3a15a80afd36d75f"
                },
                {
                  "introduced": "71e1f05a7efdb667ff61df53f621e8f3e48076fc"
                },
                {
                  "fixed": "b2309cf541aee11634eb653157b0ff86ab326e98"
                },
                {
                  "fixed": "f529cfccc6c154d6f6eabe276ec637a8c5db6763"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.0.0"
                      },
                      {
                        "fixed": "2.8.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.3.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "4.0.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "628e3bc7336625a30365d0a9b60185307d852466"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "72a23886b4698b27624b936f3a15a80afd36d75f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f529cfccc6c154d6f6eabe276ec637a8c5db6763"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "628e3bc7336625a30365d0a9b60185307d852466"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.8.3"
                  },
                  {
                    "range": [
                      {
                        "fixed": "72a23886b4698b27624b936f3a15a80afd36d75f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v3.3.4"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b2309cf541aee11634eb653157b0ff86ab326e98"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.0.2"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v3.3.3",
            "v2.8.2",
            "v2.8.1",
            "v4.0.1",
            "v3.3.2",
            "v2.8.0",
            "v4.0.0",
            "v3.2.0",
            "v3.1.0",
            "v3.0.5",
            "v3.0.4",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.7.0",
            "v2.6.1",
            "v2.6.0",
            "v2.5.0",
            "v2.4.0",
            "v2.3.1",
            "v2.3.0",
            "v2.2.2",
            "v2.2.1",
            "v2.2.0",
            "v2.1.0",
            "v2.0.3",
            "v2.0.2",
            "v2.0.1",
            "v2.0.0",
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "1.2.0",
            "v1.1.0",
            "v1.0.5",
            "v1.0.4",
            "v1.0.3",
            "v1.0.2",
            "v1.0.1",
            "v1.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73650.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.395222492Z",
      "provider": "osv",
      "references": [
        "https://github.com/svg/svgo/releases/tag/v2.8.3",
        "https://github.com/svg/svgo/releases/tag/v3.3.4",
        "https://github.com/svg/svgo/releases/tag/v4.0.2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73650.json",
        "https://github.com/svg/svgo/security/advisories/GHSA-2p49-hgcm-8545",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-73650",
        "https://github.com/svg/svgo/commit/628e3bc7336625a30365d0a9b60185307d852466",
        "https://github.com/svg/svgo/commit/72a23886b4698b27624b936f3a15a80afd36d75f",
        "https://github.com/svg/svgo/commit/f529cfccc6c154d6f6eabe276ec637a8c5db6763"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-184",
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73650.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-73650",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489647,
  "published_at": "2026-08-13T18:08:36.292+00:00"
}