Flaws and ratings

SQL injection

A flaw where text typed into a form or a link is run as a database command, letting an attacker read or change data.

In plain words

It is like a form where, instead of writing your name, you write an order that the clerk obeys without reading it.

When it affects you

Apps and sites that build database queries by pasting user input into them. AI-generated code can make this mistake if nobody checks it.

What to do today

  1. Use parameterized queries or the database library of your framework, never paste user text into a query.
  2. Give the app's database account only the permissions it needs.
  3. Review login, search and any form that touches the database.

← All termsNo. 28 / 32

Last reviewed: 2026-10-27. Written for non-experts. Check an advisory or your vendor for the details of a specific flaw.

Get the free runbooks

One-page security checklists for founders who build with AI. You get a confirmation email first, then the runbooks.

Send me the runbooks