Security Words Your AI Uses, Explained in Plain English
AI builders explain security problems in developer vocabulary, which makes it hard to tell a cosmetic warning from a real leak. This glossary explains the words you are most likely to see, in plain English, with one line on why each one matters for your app. Keep it open next to your AI chat.
On this page
The words are grouped by topic, not alphabetically, because they make more sense together.
Who someone is, and what they may do
Authentication (auth, login). Checking who someone is: email and password, Google login, a magic link. "Is this really Anna?"
Authorisation (permissions, access control). Checking what that person is allowed to do. "Anna is logged in, but may she see this invoice?" Most real leaks are authorisation failures, not login failures.
Session, token, JWT. After logging in, the browser holds a kind of ticket that proves who you are on every request. Anyone who steals the ticket can act as you until it expires. A JWT is one common format of this ticket.
Role. A label like "admin", "member" or "viewer" that decides permissions. Where the role is stored matters: if users can edit it, they can make themselves admin.
IDOR. A user changes an ID (in the address bar or a request) and gets someone else's record because the app never checked ownership. Explained here.
Data and the database
Database, table, row. The database is a set of spreadsheets (tables). Each row is one item: one user, one order.
RLS (Row Level Security). Rules inside a Supabase/Postgres database deciding which rows each user may read or change. If your app talks to Supabase from the browser, RLS is the main thing protecting your data. "RLS is disabled" on a table with user data is a serious warning. More here.
Policy. One RLS rule, for example "users can read their own orders". A policy of true means "everyone", which usually defeats the point.
Security rules (Firebase). Firebase's version of RLS.
Bucket, storage. Where uploaded files live. A "public bucket" means anyone with the link can download the files.
Keys and secrets
API key. A password your app uses to talk to another service (Stripe, OpenAI, email). Some are meant to be public, many are not.
Publishable key, anon key. Keys designed to sit in the website. Safe only if your database rules are correct.
Secret key, service role key. Master keys that ignore permissions. Must never be in the website. If one leaks, replace it.
Environment variable (env var, .env). A setting stored outside the code, usually for keys. Careful: names starting with NEXT_PUBLIC_ or VITE_ are deliberately copied into the website, so secrets must never have those prefixes.
Rotate (a key). Create a new key at the provider and switch off the old one. Deleting the old key from your code is not enough.
How the app talks to the world
Frontend, client, browser. The part that runs on the visitor's device. Anyone can see and change it. Never trust it for prices, roles or permission checks.
Backend, server, API, endpoint, route. The part that runs on your servers. This is where checks must happen.
Server action, edge function, RPC. Different names for small pieces of server code the browser can call. Each one is a door that needs its own lock.
Webhook. A message another service sends to your app, like Stripe saying "payment succeeded". Must be verified, or anyone can fake it. More here.
CORS. Browser rules about which other websites may read responses from your API. "Allow all origins" plus logins is a risky combination. More here.
Rate limit. A cap on how often someone can do something, such as login attempts per minute. Without it, bots can guess passwords or run up your bills.
Common attacks, in one line each
XSS (cross-site scripting). Text from one user runs as code in another user's browser. More
SQL injection. Text typed into a form changes a database command. More
CSRF. Another website makes your logged-in user's browser do something in your app. More
Prompt injection. Text hidden in content makes your app's AI follow someone else's instructions. More
Credential stuffing. Attackers try email and password pairs leaked from other websites.
Words on scanner reports
Vulnerability. A weakness that could be exploited.
Critical / high / medium / low. How bad it is. Fix critical and high before launch.
CVE, dependency. A known, numbered weakness in a package your app uses. Usually fixed by updating the package.
False positive. The scanner flagged something that is actually fine. Ask the AI to explain why it is fine before ignoring it.
If a term is still unclear, ask your AI: "Explain [term] in two sentences for a non-developer, and tell me whether it is a problem in my app." For the next step, see the five things that matter and our app rescue and security audit.
