vetkit.php.xxe.entity-substitution
XML is parsed with external entity loading or entity substitution enabled (XXE). Untrusted XML can then read local files or trigger requests to internal hosts.
Last updated:
Suite: Security
php
XML is parsed with external entity loading or entity substitution enabled (XXE). Untrusted XML can then read local files or trigger requests to internal hosts.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Do not pass LIBXML_NOENT / LIBXML_DTDLOAD, never call libxml_disable_entity_loader(false), and keep XMLReader::SUBST_ENTITIES off when parsing untrusted XML.
References
Source: packages/engine/rules/sast/php.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.