vetkit.py.xpath-injection.request-query
Request input is embedded into an XPath expression. Quotes in the value change the query (XPath injection).
Last updated:
Suite: Security
python
Request input is embedded into an XPath expression. Quotes in the value change the query (XPath injection).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Use XPath variables instead of interpolation: tree.xpath("//user[@name=$name]", name=value).
References
Source: packages/engine/rules/sast/python.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.