Intel

AIKIDO-2026-10869

symfony/dom-crawler is vulnerable to XML External Entity (XXE)

XML External Entity (XXE)CVE-2026-45071 Published May 21, 2026

37

Low Risk

This Affects:

PHPsymfony/dom-crawler
0.0.1 - 5.4.51
Fixed in 5.4.52
6.0.0 - 6.4.39
Fixed in 6.4.40
7.0.0 - 7.4.11
Fixed in 7.4.12
8.0.0 - 8.0.11
Fixed in 8.0.12
Are you affected? Scan for Free

TL;DR

Crawler::addXmlContent() enables DOMDocument::validateOnParse before loading XML. That setting can re-enable external entity resolution for local file URLs even when network loading is disabled. Pre-fix parsing of attacker-controlled XML can disclose local file contents through expanded entities. The fix stops enabling validation during XML parsing.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/dom-crawler is vulnerable to XML External Entity (XXE) in versions 0.0.1 - 5.4.51, 6.0.0 - 6.4.39, 7.0.0 - 7.4.11 and 8.0.0 - 8.0.11.

How to fix this

Upgrade the symfony/dom-crawler and/or symfony/symfony library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform