PHP-092 / Advanced
XML Billion Laughs (entity expansion DoS)
Why is this a problem?
Nested entities cause memory expansion of several gigabytes.
How to fix it
php
$dom = new DOMDocument(); $dom->loadXML($request->getContent(), LIBXML_NONET); // Remove NOENT and limit size