Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. svgo
  4. ›
  5. CVE-2026-29074

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

March 4, 2026 (updated March 6, 2026)

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.

References

  • github.com/advisories/GHSA-xpqw-6gx7-v673
  • github.com/svg/svgo
  • github.com/svg/svgo/security/advisories/GHSA-xpqw-6gx7-v673
  • nvd.nist.gov/vuln/detail/CVE-2026-29074

Code Behaviors & Features

Detect and mitigate CVE-2026-29074 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 2.8.1, all versions starting from 3.0.0 before 3.3.3, all versions starting from 4.0.0 before 4.0.1, version 4.0.0

Fixed versions

  • 2.8.1
  • 3.3.3
  • 4.0.1

Solution

Upgrade to versions 2.8.1, 3.3.3, 4.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Source file

npm/svgo/CVE-2026-29074.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:29 +0000.