Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.sql-injection.request-input

Request input reaches the text of a raw SQL query or SQL fragment. An attacker can change the query and read or modify arbitrary data.

Last updated:

Suite: Security

javascript, typescript

Request input reaches the text of a raw SQL query or SQL fragment. An attacker can change the query and read or modify arbitrary data.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Pass request values as bound parameters (? / $1 placeholders, knex whereRaw('x = ?', [v]), Sequelize replacements, TypeORM :name parameters, Prisma tagged $queryRaw) and never splice them into the SQL text.

References

Source: packages/engine/rules/sast/javascript.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.