XXE in Svg Svgo

CVE-2026-29074

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.

EPSS: 0.006 (47.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

  • Svg Svgo — versions >= 2.1.0, < 2.8.1, >= 3.0.0, < 3.3.3, = 4.0.0
  • Svgo

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-29074?
CVE-2026-29074 is a high-severity vulnerability in Svg Svgo, classified under Improper Restriction of Recursive Entity References in DTDs (XML Entity Expansion). CVSS score: 7.5/10. Published 2026-03-06.
How severe is CVE-2026-29074?
High severity. CVSS v3 base score is 7.5 out of 10.