vetkit.go.sql-injection.string-building
SQL query text is built with fmt.Sprintf or string concatenation, enabling SQL injection.
Last updated:
Suite: Security
go
SQL query text is built with fmt.Sprintf or string concatenation, enabling SQL injection.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Use placeholders and pass values as arguments: db.Query("... WHERE id = $1", id).
References
Source: packages/engine/rules/sast/go.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.