XML Entity Expansion (Billion Laughs) Affecting svgo package, versions >=2.1.0 <2.8.1>=3.0.0 <3.3.3>=4.0.0 <4.0.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SVGO-15423912
  • published5 Mar 2026
  • disclosed4 Mar 2026
  • creditByambadalai Sumiya

Introduced: 4 Mar 2026

NewCVE-2026-29074  (opens in a new tab)
CWE-776  (opens in a new tab)

How to fix?

Upgrade svgo to version 2.8.1, 3.3.3, 4.0.1 or higher.

Overview

Affected versions of this package are vulnerable to XML Entity Expansion (Billion Laughs) when parsing of custom XML entities in DOCTYPE. An attacker can cause the application to consume excessive memory by submitting malicious SVG files containing recursive entity references.

Workaround

For version 4.0.0, upgrading the sax dependency to 1.5.0 recursively (yarn -R) mitigates this vulnerability.

CVSS Base Scores

version 4.0
version 3.1