High severityNVD Advisory· Published Mar 6, 2026· Updated Mar 6, 2026
SVGO: DoS through entity expansion in DOCTYPE (Billion Laughs)
CVE-2026-29074
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
svgonpm | >= 2.1.0, < 2.8.1 | 2.8.1 |
svgonpm | >= 3.0.0, < 3.3.3 | 3.3.3 |
svgonpm | >= 4.0.0, < 4.0.1 | 4.0.1 |
Affected products
7- osv-coords6 versionspkg:apk/chainguard/librechatpkg:apk/chainguard/vitess-22pkg:apk/chainguard/vitess-23pkg:apk/wolfi/vitess-22pkg:apk/wolfi/vitess-23pkg:npm/svgo
< 0.8.3-r0+ 5 more
- (no CPE)range: < 0.8.3-r0
- (no CPE)range: < 22.0.4-r6
- (no CPE)range: < 23.0.3-r7
- (no CPE)range: < 22.0.4-r6
- (no CPE)range: < 23.0.3-r7
- (no CPE)range: >= 2.1.0, < 2.8.1
- svg/svgov5Range: >= 2.1.0, < 2.8.1
Patches
Vulnerability mechanics
References
3- github.com/advisories/GHSA-xpqw-6gx7-v673ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-29074ghsaADVISORY
- github.com/svg/svgo/security/advisories/GHSA-xpqw-6gx7-v673ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.