← all rules

code/js-sqli-string-concat

SQL Injection: query built with + string concatenation

criticalCode regexsqliCWE-89js

What it detects

SQL string is concatenated with a variable. Use parameterized queries (?, $1) or a query builder instead.

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.