#The OWASP Top 10 for LLM applications
AddedThe OWASP Top 10 for LLM Applications is the security community's shared list of the most critical risks in applications built on language models, maintained by the OWASP GenAI Security Project. It's the vocabulary interviewers and security reviewers use, so learn the names and, more importantly, what each one looks like in a full-stack app. The mental model: it's the OWASP Web Top 10 for a component that takes instructions from its input. Classic web security assumes code and data are separate; with a model, every piece of text it reads can act like code, which is why injection is number one and why so many of the others are about limiting what a fooled model can do.
The 2025 list, verbatim from genai.owasp.org, mapped to where this chapter (and course) deals with it:
| ID | Risk | In one line | Where it's covered |
|---|---|---|---|
| LLM01:2025 | Prompt Injection | Text in the input (from a user or a document) changes what the model does | Prompt injection, Defending |
| LLM02:2025 | Sensitive Information Disclosure | The app reveals personal data, secrets or other users' data through the model | Data leakage and privacy |
| LLM03:2025 | Supply Chain | Compromised models, datasets, packages or plugins | The AI supply chain |
| LLM04:2025 | Data and Model Poisoning | Training, fine-tuning or retrieval data manipulated to change behaviour | The AI supply chain, RAG |
| LLM05:2025 | Improper Output Handling | Model output used unsafely: rendered as HTML, run as SQL, shell or code | Insecure output handling |
| LLM06:2025 | Excessive Agency | The model has more tools, permissions or autonomy than the task needs | Excessive agency |
| LLM07:2025 | System Prompt Leakage | Instructions or secrets in the system prompt are extracted | Data leakage and privacy |
| LLM08:2025 | Vector and Embedding Weaknesses | Retrieval leaks across users or tenants, or is poisoned | Data leakage and privacy, Filtering and multi-tenancy |
| LLM09:2025 | Misinformation | Confident, wrong output (hallucination) that people act on | Why models hallucinate |
| LLM10:2025 | Unbounded Consumption | Unlimited requests, tokens or loops: cost blow-ups and denial of service | Rate limits, Controlling cost |
There is a newer edition. The project published the 2026 list on 4 August 2026 (per its GitHub repository). Its entries are: LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure, LLM03 Excessive Agency, LLM04 Supply Chain, LLM05 Data and Model Poisoning, LLM06 Unbounded Consumption, LLM07 Misinformation, LLM08 Hidden Context Exposure, LLM09 Vector and Embedding Weaknesses, LLM10 Improper Output Handling. Two changes stand out from the names alone: Excessive Agency moved up to third, and System Prompt Leakage no longer appears under that name, while the new Hidden Context Exposure entry covers system prompts and also other hidden context such as tool schemas and retrieved policy text, with the advice to assume all of it is discoverable. The project also publishes a separate Top 10 for agentic applications. In an interview, naming the 2025 list correctly and mentioning that a 2026 update exists is a good answer; the risks themselves didn't disappear.
For each, which OWASP 2025 entry is it? (a) A support bot renders the model's Markdown, and a reply includes an image whose URL carries the user's email address to another site. (b) A RAG search for one customer returns chunks from another customer's contracts. (c) A free tier lets anyone send unlimited 200K-token prompts.
Show answer
(a) LLM05 Improper Output Handling (with LLM02 if data leaks); (b) LLM08 Vector and Embedding Weaknesses (and LLM02); (c) LLM10 Unbounded Consumption.
- (a) The model's output was treated as trusted and rendered, so a URL in it made the browser send data elsewhere. That's output handling. Often the root cause is an injection (LLM01) that made the model write the image, and the impact is disclosure (LLM02); the fix that holds is at the output layer: don't render images or links to hosts you don't allow.
- (b) Retrieval returned data the user isn't allowed to see. The vector store wasn't filtered by tenant, which is the classic embedding-layer weakness; the result is a disclosure.
- (c) No limits on requests or tokens means one user can run up your bill or starve everyone else: unbounded consumption. The fix is per-user quotas, token budgets and rate limits.
- Most real incidents span several entries. The list is a checklist for design reviews, not a set of separate bugs.
The attacks in this chapter, end to end
Each risk is easier to remember as a concrete attack with a concrete fix. This chapter walks through one realistic, runnable attack for most entries; the table says where to find each.
| OWASP 2025 | End-to-end example | Topic |
|---|---|---|
| LLM01 Prompt Injection | Reviews that flip a real model's label; a web page that makes an agent email user data | Prompt injection |
| LLM02 Sensitive Information Disclosure | A poisoned help article makes the answer carry the user's email out in an image URL | Data leakage and privacy |
| LLM03 Supply Chain | An MCP server changes a tool description after approval (a "rug pull") | The AI supply chain |
| LLM04 Data and Model Poisoning | A planted community post outranks the official refund policy in real vector search | The AI supply chain |
| LLM05 Improper Output Handling | Model-written SQL tries UNION SELECT on the users table, against a real SQLite database | Insecure output handling |
| LLM06 Excessive Agency | A "fetch this URL" tool used to reach the cloud metadata service (SSRF) | Excessive agency |
| LLM07 System Prompt Leakage | An extraction attempt caught by a canary, and why the secret shouldn't have been there | Data leakage and privacy |
| LLM08 Vector and Embedding Weaknesses | Filtering by tenant after top-k retrieval returns nothing, and the fallback leaks | Data leakage and privacy |
| LLM09 Misinformation | Hallucinated package names, verified before install | The AI supply chain |
| LLM10 Unbounded Consumption | A request that would loop an agent into a large bill, stopped by a budget | Excessive agency |