Skip to content
vetkitChecksChangelogDocumentation

vetkit.php.template-injection.request-input

Request input is compiled as a template (server-side template injection). Template code can call PHP functions and lead to remote code execution.

Last updated:

Suite: Security

php

Request input is compiled as a template (server-side template injection). Template code can call PHP functions and lead to remote code execution.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Load templates only from files you control and pass user input as template variables.

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.