vetkit.php.sql-injection.wordpress-prepare-format
Request input is built into the format string of $wpdb->prepare() (SQL injection). prepare() only escapes the values passed as separate arguments.
Last updated:
Suite: Security
php
Request input is built into the format string of $wpdb->prepare() (SQL injection). prepare() only escapes the values passed as separate arguments.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Keep the format string constant and pass every request value as an argument matched by a %s / %d / %i placeholder.
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.