vetkit.ruby.sql-injection.sequel
Request input is built into a raw Sequel SQL string or literal (SQL injection). Sequel only escapes values passed as placeholders or in dataset filters.
Last updated:
Suite: Security
ruby
Request input is built into a raw Sequel SQL string or literal (SQL injection). Sequel only escapes values passed as placeholders or in dataset filters.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use placeholders (DB["SELECT * FROM t WHERE id = ?", id]) or dataset methods such as where(id: id).
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.