Vulnerability · Published Mar 6, 2026 · Assigned by GitHub_M

CVE-2026-29074SVGO: DoS through entity expansion in DOCTYPE (Billion Laughs)

High 7.5

In plain English

A high-severity security flaw in svgo from svg. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 46.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14node-svgo3.3.5+ds-1DEBIAN-CVE-2026-29074
npmsvgo2.8.1GHSA-xpqw-6gx7-v673
npmsvgo3.3.3GHSA-xpqw-6gx7-v673
npmsvgo4.0.1GHSA-xpqw-6gx7-v673

Affected products (as reported)

VendorProductVersions
svg svgo >= 2.1.0, < 2.8.1>= 3.0.0, < 3.3.3= 4.0.0

Weakness: CWE-776 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References