Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') Affecting symfony/yaml package, versions <5.4.52>=6.0.0-BETA1, <6.4.40>=7.0.0-BETA1, <7.4.12>=8.0.0-BETA1, <8.0.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (24th 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-PHP-SYMFONYYAML-16798664
  • published22 May 2026
  • disclosed20 May 2026
  • creditPietro Tirenna

Introduced: 20 May 2026

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

How to fix?

Upgrade symfony/yaml to version 5.4.52, 6.4.40, 7.4.12, 8.0.12 or higher.

Overview

Affected versions of this package are vulnerable to Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion') via Recursive Collection-Alias Expansion ("Billion Laughs"). Symfony\Component\Yaml\Parser resolves YAML aliases (*anchor) during parsing. Aliases that reference collections (arrays, stdClass, TaggedValue-wrapped collections) can themselves point to other collections containing aliases, creating exponential expansion at resolution time. A small input can blow up into a multi-gigabyte structure and exhaust memory: the classic "Billion Laughs" denial-of-service against any parser exposed to untrusted YAML.

CVSS Base Scores

version 4.0
version 3.1