Source. This article is based on OSV entry for CVE-2026-123824 (Symfony Config XmlUtils::parse XXE). Details were checked against it on November 22, 2026; check the source for later changes.
On 6 November 2026 the OSV database published CVE-2026-123824, an XML external entity (XXE) flaw in the Symfony Config component. The record was modified on 8 November. It affects XmlUtils::parse() in versions before 5.4.56, 6.x before 6.4.50, 7.x before 7.4.23 and 8.x before 8.1.11. Packagist lists the same issue under symfony/symfony, symfony/config and related splits, with a GitHub advisory id of GHSA-5jff-8h8q-r5qx. The record does not state a severity score, so we will not give one.
We read the OSV record, which is our source for everything below: OSV entry for CVE-2026-123824. We could not open the GitHub advisory itself from our environment, and the Symfony site page for this id said no public information was available when we checked, so the OSV text is the only description we rely on.
What the advisory says
The record says XmlUtils::parse() switches on DTD validation (validateOnParse = true) before it calls loadXML(), and only afterwards rejects documents that contain a doctype. Turning on validation makes libxml resolve external entities during the load. The LIBXML_NONET flag blocks http:// entities but not file:// ones, so a local file is read before the doctype check runs.
The content of the file is not returned to the caller. According to the record, the practical effects are three. An attacker can tell whether a local path exists, because libxml reports a distinct error for a missing file. A large or slow file can cause a denial of service. And if the application has registered a network-capable stream wrapper such as s3://, a parameter entity can send local file content to an external server.
The record says this is the same bug as CVE-2026-45071, which was fixed in the DomCrawler component but not in Config.
Who is affected, and how to tell
The record says you are affected if your application passes untrusted XML straight to XmlUtils::parse(). It adds that the Symfony components that call this method work on developer-provided or operator-configured sources, such as configuration files and the XLIFF documents fetched by translation providers. So for many applications the exposure is narrow. It is still worth checking, because older code often calls helpers directly.
First, find which version of the component you run:
composer show symfony/config
composer show symfony/symfony
Compare the result with the fixed versions: 5.4.56, 6.4.50, 7.4.23 or 8.1.11, depending on your branch. Then search your own code for direct use of the method:
grep -rn "XmlUtils::parse" src/ app/ lib/ 2>/dev/null
If a hit feeds it a file or string that a user, a customer or a third-party feed can influence, treat the code as exposed. If you find none, the record's description suggests your exposure comes only from the Symfony components that call it internally, and the fix is still the same upgrade.
The fix
The record lists the fixed releases as 5.4.56, 6.4.50, 7.4.23 and 8.1.11, with a fix commit in the Symfony repository. Update within your current branch:
composer update symfony/config --with-all-dependencies
composer show symfony/config
If you require the whole symfony/symfony package, update that instead. If a lock file pins you on an older minor, check what holds it back:
composer why-not symfony/config 6.4.50
Replace the version with the fixed release for your branch. Commit the updated composer.lock and deploy it the way you deploy any dependency change.
Keep the lock file change small. Updating only the Symfony packages makes it easier to review the diff and to roll back if your tests fail.
If you cannot upgrade right now
The record does not describe a workaround, so we will not invent one. The sensible interim step follows from its own wording: make sure no untrusted XML reaches XmlUtils::parse(), and review whether your application registers any network-capable stream wrappers. Treat that as a stopgap, not a fix.
How to confirm the fix
Confirm the installed version with composer show symfony/config on the machine that serves traffic, not only in CI. Check that composer.lock shows a fixed release. Running composer audit afterwards should no longer list this advisory for your packages. We have not run the patched code ourselves, so rely on the maintainers' fix and your own test suite.
When this points at a bigger problem
An XML parsing flaw that shows up in a dependency is rarely the real issue. The real issue is usually an application stuck on an old Symfony branch, such as 5.4 or earlier, where each advisory forces a rushed manual patch. If you cannot move because the code underneath is old, that is the work we do: see our legacy PHP modernisation services. We start with an audit of what your dependencies and runtime are, as in our legacy PHP security audit guide.
Two related reads: our write-up of the earlier Symfony MIME header injection advisory from the same month, and the steps in upgrading PHP 5.6 and 7 to PHP 8, since newer Symfony branches need a newer PHP.
Frequently asked questions
Which Symfony versions fix CVE-2026-123824?
The OSV record lists 5.4.56, 6.4.50, 7.4.23 and 8.1.11 as the first fixed releases on their branches.
Does this flaw return file contents to the attacker?
Per the record, the file content is not returned to the caller, but an attacker can learn whether a file exists or cause a denial of service. Content can leak if a network-capable stream wrapper such as s3:// is registered.
Stuck on an old Symfony branch?
We audit legacy PHP applications, upgrade their Symfony and PHP versions and add the tests that make the next security update routine.
See our Legacy PHP Modernisation Services