Description
SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. From version 2.1.0 to before version 2.8.1, from version 3.0.0 to before version 3.3.3, and before version 4.0.1, SVGO accepts XML with custom entities, without guards against entity expansion or recursion. This can result in a small XML file (811 bytes) stalling the application and even crashing the Node.js process with JavaScript heap out of memory. This issue has been patched in versions 2.8.1, 3.3.3, and 4.0.1.
References (1)
Core 1
Core References
Vendor Advisory x_refsource_confirm
https://github.com/svg/svgo/security/advisories/GHSA-xpqw-6gx7-v673
Scores
CVSS v3
7.5
EPSS
0.0034
EPSS Percentile
25.5%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-776
Status
published
Products (2)
npm/svgo
2.1.0 - 2.8.1npm
svgo/svgo
2.1.0 - 2.8.1
Published
Mar 06, 2026
Tracked Since
Mar 06, 2026