← all rules
code/js-sqli-template-literal
SQL Injection: template literal with interpolation
What it detects
SQL is built via a template literal with ${var} interpolation, which is equivalent to string concatenation. Use parameter binding.
How it runs
Applied line-by-line via a tagged regex with language-specific gating. Comments are skipped. Designed for high-confidence patterns where AST parsing would be overkill.
Found a false positive or want this rule tuned? File an issue. You can also suppress per-repo via a .repoguardignore line.