BuzzPHP
LightDarkSystem

Symfony: Unbounded Recursion in the YAML Inline Lexer Lets a Single Document Crash the Process

High severity. Published 27 October 2026. Update symfony/symfony to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6) and symfony/yaml to the fixed version of your branch (5.4.54, 6.4.45, 7.4.18, 8.1.6): composer update symfony/symfony symfony/yaml.

Which versions are affected?

PackageAffected versionsFixed in
symfony/symfony (opens in a new tab)>= 2.0.0, < 5.4.54 | >= 6.0.0, < 6.4.45 | >= 7.0.0, < 7.4.18 | >= 8.0.0, < 8.1.65.4.54, 6.4.45, 7.4.18, 8.1.6
symfony/yaml (opens in a new tab)>= 2.0.0, < 5.4.54 | >= 6.0.0, < 6.4.45 | >= 7.0.0, < 7.4.18 | >= 8.0.0, < 8.1.65.4.54, 6.4.45, 7.4.18, 8.1.6

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show symfony/symfony
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-109413 (opens in a new tab)
GHSAGHSA-2v3c-qxhr-7vpv (opens in a new tab)
WeaknessCWE-674

What the advisory says

Description

Yaml\Parser::lexInlineStructure() recursed through lexInlineMapping() and lexInlineSequence() for every { and [ of an inline collection, without entering the nesting level that the rest of the parser bounds with maxNestingLevel. A document made of deeply nested inline collections, such as [[[[...]]]], exhausted the stack while it was being lexed: depending on the PHP version and its stack settings, the process crashed or the request ended with a fatal error.

Any code parsing untrusted YAML is affected.

Source: GHSA-2v3c-qxhr-7vpv (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories