All rules →
Rules / Ruby
SHIELD-RUBY-001

SQL injection via string interpolation in where

criticalRubyCWE-89CVSS 9.8

What it detects

User input interpolated directly into an ActiveRecord where clause allows SQL injection.

How to fix

Use parameterized queries with placeholders such as where("col = ?", value).

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-001: SQL injection via string interpolation in where — Zennoxa Shield