vetkit.php.xpath-injection.request-input
Request input is built into an XPath expression (XPath injection). Attackers can change the query to read other nodes or bypass checks.
Last updated:
Suite: Security
php
Request input is built into an XPath expression (XPath injection). Attackers can change the query to read other nodes or bypass checks.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Validate values against a strict pattern (e.g. ctype_alnum) or compare them in PHP after selecting nodes with a constant expression.
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.