Harden PHP XML parsing against external entities
XML parsing should disable external entities and avoid LIBXML_NOENT or libxml_disable_entity_loader(false).
#Metadata
#Why it matters
Unsafe XML parser configuration enables XXE attacks that can leak files and reach internal services.
#Remediation
Call libxml_disable_entity_loader(true) before parsing and pass LIBXML_NONET; never enable LIBXML_NOENT.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/php/php.security.xml-external-entity.rule.yaml.