Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.sql-injection.interpolation

Request input is built into an ActiveRecord / SQL query string (SQL injection). An attacker can read or modify arbitrary database rows.

Last updated:

Suite: Security

ruby

Request input is built into an ActiveRecord / SQL query string (SQL injection). An attacker can read or modify arbitrary database rows.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use bind parameters: where("name = ?", name) or where(name: name).

References

Source: packages/engine/rules/sast/ruby.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.