


Perceptive Security
SOC/SIEM Consultancy

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…
Published:
1 september 2026 om 00:00:00
Alert date:
2 september 2026 om 00:16:07
Source:
nvd.nist.gov
Web Technologies, Supply Chain & Dependencies
SVGO (SVG Optimizer), a Node.js library for optimizing SVG files, contains a vulnerability in its opt-in removeScripts plugin (called removeScriptElement in versions 2 and 3). Affected versions range from 1.0.0 up to but not including 2.8.4, 3.3.5, and 4.1.0. The plugin incompletely filters executable links by failing to recognize namespace-prefixed SVG anchor elements such as svg:a with href or namespaced *:href attributes. Additionally, it does not strip ASCII tab, line-feed, or carriage-return characters before checking URL schemes, which browsers silently remove before parsing, allowing malicious links to bypass the filter. When attacker-controlled SVG input is processed and served in an active browser context, a victim clicking the surviving link can trigger script execution within the SVG's origin. This could lead to data exposure, content modification, or unauthorized actions performed as the victim. Fixes are available in versions 2.8.4, 3.3.5, and 4.1.0.
Technical details
Mitigation steps:
Affected products:
SVGO 1.0.0 - 2.8.3
SVGO 3.0.0 - 3.3.4
SVGO 4.0.0 - 4.0.x
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-84370
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/pull/2268
https://github.com/svg/svgo/pull/2269
https://github.com/svg/svgo/pull/2272
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
https://github.com/svg/svgo/security/advisories/GHSA-w27v-7q3p-w38r
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
