CVE-2026-84370SVGO: removeScripts allows executable links through namespace and control-character…
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.4, 3.3.5, and 4.1.0, the opt-in removeScripts plugin, named removeScriptElement in versions 2 and 3, incompletely filters executable links in plugins/removeScripts.js and lib/svgo/tools.js. The plugin does not recognize namespace-prefixed SVG anchor elements such as svg:a with href or namespaced *:href values, and it does not remove ASCII tab, line-feed, or carriage-return characters before checking URL schemes. Browsers remove those characters before parsing a scheme, allowing an executable link to pass the plugin's check. When an application processes attacker-controlled SVG input and serves the result in an active browser context, a victim who activates the surviving link can execute script in the SVG's origin, expose data, modify content, or perform actions as the victim. This issue is fixed in versions 2.8.4, 3.3.5, and 4.1.0.
What to do
Fixed builds are available from Debian, npm: see the table below for the fixed version per release.
Red Hat has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | node-svgo | Fixed | 3.3.5+ds-1 | DEBIAN-CVE-2026-84370 |
| Red Hat Enterprise Linux 10 | grafana | Under investigation | ||
| Red Hat Enterprise Linux 10 | grafana-pcp | Under investigation | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Under investigation | ||
| Red Hat Enterprise Linux 9 | grafana | Under investigation | ||
| Red Hat Enterprise Linux 9 | grafana-pcp | Under investigation | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Under investigation | ||
| Red Hat Enterprise Linux 9 | pcs | Under investigation | ||
| Red Hat Enterprise Linux 9 | pcs-snmp | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-azure-monitor | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-cloudwatch | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-elasticsearch | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-graphite | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-influxdb | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-loki | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-mssql | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-mysql | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-opentsdb | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-pcp | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-postgres | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-prometheus | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-selinux | Under investigation | ||
| Red Hat Enterprise Linux 8 | grafana-stackdriver | Under investigation | ||
| Red Hat Enterprise Linux 8 | mozjs60 | Under investigation | ||
| Red Hat Enterprise Linux 8 | mozjs60-devel | Under investigation | ||
| Red Hat Enterprise Linux 8 | pcs | Under investigation | ||
| Red Hat Enterprise Linux 8 | pcs-snmp | Under investigation | ||
| Red Hat Enterprise Linux 7 | python-syspurpose | Under investigation | ||
| Red Hat Enterprise Linux 7 | rhsm-gtk | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-cockpit | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-gui | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-initial-setup-addon | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-migration | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-container | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-plugin-ostree | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm | Under investigation | ||
| Red Hat Enterprise Linux 7 | subscription-manager-rhsm-certificates | Under investigation | ||
| npm library | svgo | Fixed | 4.1.0 | GHSA-w27v-7q3p-w38r |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- svgo: affected: >= 1.0.0, < 2.8.4, >= 3.0.0, < 3.3.5, >= 4.0.0, < 4.1.0
References
- https://github.com/svg/svgo/security/advisories/GHSA-w27v-7q3p-w38r
- https://github.com/svg/svgo/pull/2268
- https://github.com/svg/svgo/pull/2269
- https://github.com/svg/svgo/pull/2272
- https://github.com/svg/svgo/commit/0557385564a5c6c11d76cd934a6cff94451e532c
- https://github.com/svg/svgo/commit/3db3ef33e409a0bc0fdaf255e46c908b00e93bc2
- https://github.com/svg/svgo/commit/994a9f00d79ddec68ce19a1ce9eb8ca08d747e4f
- https://github.com/svg/svgo/releases/tag/v2.8.4
- https://github.com/svg/svgo/releases/tag/v3.3.5
- https://github.com/svg/svgo/releases/tag/v4.1.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.