
Introduction
Building AI features into a web app—whether a customer support chatbot, a retrieval-augmented generation (RAG) search bar, or an autonomous coding or workflow agent—changes your application’s threat model. Unlike classic SQL queries where code and data stay separated by parameterized bindings, a large language model reads system instructions, user messages, retrieved documents, and tool outputs as a single stream of tokens. As of November 25, 2026, the official baseline for engineering teams is the OWASP Top 10 for LLM Applications 2026 published by the OWASP GenAI Security Project at genai.owasp.org.
This guide walks developers through all ten entries of the 2026 OWASP Top 10 for LLM Applications, explains what changed from the 2025 edition, connects them to the companion OWASP Top 10 for Agentic Applications (2026) and Agent Control Standard (ACS), and turns each risk into concrete engineering guardrails you can enforce outside the model.
Key Facts: OWASP Top 10 for LLM Applications 2026
- Current official edition: OWASP GenAI LLM Top 10 2026 (released August–September 2026), replacing the 2025 edition as the latest release.
- Evidence-backed ranking: For the first time, OWASP combined practitioner votes (75% weight) with empirical analysis of 7,714 real AI security and harm records—6,639 with enough detail to classify (25% weight).
- Biggest shifts in 2026:
LLM03:2026 Excessive Agencyjumped from #6 to #3 as agentic tool use entered production;LLM06:2026 Unbounded Consumptionrose four spots;LLM07:2026 Misinformationclimbed because real incident records showed frequent harm; and 2025’s System Prompt Leakage evolved intoLLM08:2026 Hidden Context Exposure. - Core design rule: OWASP’s project leads state it plainly—stop trying to build a model that cannot be fooled, and build the surrounding system so nothing critical breaks when it is.
- Companion agentic standards: Pair the LLM Top 10 with the OWASP Top 10 for Agentic Applications (
ASI01–ASI10) and the Agent Control Standard (ACS) when models invoke MCP servers, APIs, or sub-agents.
What Changed in the 2026 OWASP Top 10 for LLM Applications?
In the 2025 edition, rankings came purely from expert consensus. In 2026, the OWASP GenAI Security Project tested that consensus against thousands of real-world disclosures and AI incident reports. Two findings stood out:
- Agentic permissions are where real damage lands. When an LLM only writes chat text, a bad answer is embarrassing. When it holds OAuth tokens, SQL tools, email connectors, or shell access, a fooled model triggers unauthorized actions—pushing Excessive Agency to
#3. - Hidden operational context is broader than a single system prompt. Modern apps pack tool schemas, policy rules, tenant metadata, and workflow logic into non-user-visible context.
LLM08:2026 Hidden Context Exposurereflects that wider surface.
All 10 Risks in the OWASP Top 10 for LLM Applications (2026)
| Rank | ID & Risk Name | Core Developer Failure Mode | Primary Defense Pattern |
|---|---|---|---|
| 1 | LLM01:2026 Prompt Injection | Direct, retrieved, or tool inputs hijack model behavior across one token stream | Assume inputs are untrusted; isolate privileges and validate actions outside the LLM |
| 2 | LLM02:2026 Sensitive Information Disclosure | Model leaks PII, secrets, private docs, or reasoning traces in output | Scrub training/RAG data, enforce per-user ACLs, redact outputs |
| 3 | LLM03:2026 Excessive Agency | Model has overly broad tools, write permissions, or autonomous execution | Least agency, narrow tool scopes, deterministic auth, human approval |
| 4 | LLM04:2026 Supply Chain | Compromised weights, LoRAs, dependencies, MCP servers, or datasets | Verify signatures/provenance, pin packages, maintain an AI BOM |
| 5 | LLM05:2026 Data and Model Poisoning | Attacker corrupts pre-training, fine-tuning, or RAG/memory stores | Vet data provenance, restrict write paths to RAG/memory, monitor drift |
| 6 | LLM06:2026 Unbounded Consumption | Attackers trigger runaway token, GPU, or API billing (Denial of Wallet) | Strict per-user rate limits, token/step budgets, timeout caps |
| 7 | LLM07:2026 Misinformation | Hallucinated or confidently wrong outputs drive bad code or decisions | Ground with verified retrieval, show citations, gate high-stakes actions |
| 8 | LLM08:2026 Hidden Context Exposure | Extraction of non-user-facing system instructions, tool schemas, or rules | Keep secrets and auth logic completely out of prompts |
| 9 | LLM09:2026 Vector and Embedding Weaknesses | Unfiltered RAG retrieval leaks cross-tenant chunks or accepts poisoned vectors | Enforce tenant ACLs at vector query time; validate ingested documents |
| 10 | LLM10:2026 Improper Output Handling | Model output passed unescaped into HTML, SQL, shells, or APIs | Treat LLM text like untrusted user input; encode, parameterize, validate schemas |
Deep Dive: The Top Risks Developers Hit First
LLM01:2026 Prompt Injection and LLM08:2026 Hidden Context Exposure
LLMs make no architectural separation between developer instructions and untrusted data. Whether an attacker types an override directly into chat (direct injection) or hides white-text commands inside an HTML page, PDF, email, or MCP tool response that your assistant reads (indirect injection), both enter the same context window. Persistent memory and RAG stores worsen this because a single poisoned note can taint future sessions.
Teams often try to fight prompt injection by writing stricter rules in the system prompt (“Never reveal internal policies or API keys”). LLM08:2026 Hidden Context Exposure explains why that fails: attackers routinely extract or infer system instructions, refusal triggers, and tool schemas. Never store API keys, database credentials, or authorization rules in a system prompt. Enforce access control in deterministic backend code before the model ever runs or sees data.
LLM02:2026 Sensitive Information Disclosure and LLM09:2026 Vector and Embedding Weaknesses
In RAG applications, a vector database does not automatically know which user is asking a question. If your pipeline embeds documents from HR, finance, and public help pages into one index and runs a bare similarity search on the user’s prompt, LLM09 and LLM02 turn into an instant cross-tenant data leak. Always pass the authenticated user’s permissions as mandatory metadata filters into the vector store query before retrieved chunks enter the model’s context window, and apply data-loss prevention (DLP) scanning on outputs.

LLM03:2026 Excessive Agency and the OWASP Agentic Top 10
Whenever you connect an LLM to functions, webhooks, or third-party Model Context Protocol (MCP) servers, LLM03:2026 Excessive Agency becomes your highest-impact operational risk. A model tricked by an indirect prompt injection inside an incoming ticket or webpage can abuse any tool you handed it.
To align with the OWASP Top 10 for Agentic Applications (2026) (ASI01 Agent Goal Hijack through ASI10 Rogue Agents) and OWASP’s Agent Control Standard (ACS):
- Practice least agency: Do not give an app autonomous multi-step tool execution if a deterministic workflow or read-only lookup works.
- Scope tokens per user, not per service: Use the end user’s scoped OAuth permissions rather than a global admin service account.
- Require human-in-the-loop confirmation for irreversible actions—sending external messages, deleting records, changing permissions, or spending money.
- Enforce runtime policy hooks outside the model so a compromised prompt cannot invoke disallowed parameters or unapproved hosts.
LLM04:2026 Supply Chain and LLM10:2026 Improper Output Handling
AI applications pull from huge dependency trees: open-weight model checkpoints, fine-tuning adapters, Python/npm inference wrappers, prompt templates, and external MCP servers. OWASP recommends tracking an AI Bill of Materials (AI BOM), verifying model artifact hashes, and auditing third-party MCP connectors before giving them data access. This echoes the software supply-chain risks we cover in AI malware risks from LLM-generated code.
Equally classic—and often overlooked—is LLM10:2026 Improper Output Handling. If your backend takes LLM-generated Markdown, HTML, SQL, or shell commands and renders or executes them without sanitization, a prompt injection immediately turns into stored XSS, SQL injection, or remote code execution. Validate outputs against strict JSON schemas, encode HTML, use parameterized SQL queries, and maintain a strong Content Security Policy in the browser.
LLM06:2026 Unbounded Consumption and LLM07:2026 Misinformation
LLM06:2026 covers both traditional denial of service and “Denial of Wallet”—attacks that feed worst-case context lengths, trigger recursive agent loops, or spam expensive vision/reasoning calls until API budgets evaporate. Cap max_tokens, limit agent tool iterations per request, enforce per-tenant quotas, and alert on spend spikes. For LLM07:2026 Misinformation, avoid letting unverified model prose directly trigger financial, medical, or infrastructure changes without deterministic verification or human review.
Practical Pre-Launch Checklist for AI Developers
- Strip secrets from prompts: Confirm zero credentials, internal hostnames, or bypass rules sit inside system instructions.
- Filter RAG queries by user ACL: Verify every vector search enforces caller authorization in database filters, not prompt text.
- Restrict tool schemas: Expose read-only tools by default; gate state-changing actions behind deterministic policy checks and explicit user confirmation.
- Sanitize all model outputs: Apply strict JSON schema validation, HTML escaping, and parameterized queries—never
eval()or raw string SQL. - Enforce token, step, and cost caps: Set hard limits on request size, agent loop depth, and concurrent calls per user.
- Inventory models and MCP servers: Pin versions, verify artifact provenance, and pair web endpoints with classic OWASP Top 10 and WAF protections.
FAQ
Is the OWASP Top 10 for LLM Applications 2026 still the 2025 list?
No. The OWASP GenAI Security Project released the 2026 Top 10 for LLM Applications in August–September 2026, updating rankings using both practitioner votes and 6,639 classified real-world AI incident records.
How does the OWASP Top 10 for LLM differ from the OWASP Top 10 for Agentic Applications?
The OWASP Top 10 for LLM Applications focuses on risks in LLM-powered apps (LLM01–LLM10), while the OWASP Top 10 for Agentic Applications (2026) (ASI01–ASI10) drills deeper into autonomous multi-step agents—covering Agent Goal Hijack, Tool Misuse, Identity & Privilege Abuse, Memory Poisoning, and Rogue Agents.
Can prompt engineering or guardrails alone stop Prompt Injection?
No. Because LLMs process instructions and untrusted data in the same token stream, OWASP emphasizes that no prompt phrasing guarantees immunity. Input filtering helps reduce noise, but real safety comes from least-privilege tool scoping, output validation, and deterministic authorization outside the model.
Why did System Prompt Leakage become Hidden Context Exposure in 2026?
Modern AI apps place much more than a static system prompt inside hidden context—including tool definitions, developer policies, user metadata, and intermediate workflow instructions. LLM08:2026 Hidden Context Exposure captures that broader leakage risk.
What does LLM10:2026 Improper Output Handling prevent?
It prevents downstream security vulnerabilities—such as XSS, SSRF, SQL injection, or arbitrary code execution—caused by trusting model output as safe code or commands rather than validating and encoding it like untrusted user input.
Conclusion
The 2026 OWASP Top 10 for LLM Applications marks a shift from theoretical prompt tricks to system-level engineering discipline. Treat the model as an untrusted component that will occasionally be fooled: keep secrets out of context, filter RAG data by caller permissions, constrain tool agency, cap consumption, and validate every output before it touches a browser, database, or shell.
References
All references below were verified on November 25, 2026.
- OWASP GenAI Security Project: Top 10 for LLM and GenAI
- OWASP GenAI LLM Top 10 2026 Resource Page
- OWASP Top 10 for LLM Applications 2026 (Official Document)
- OWASP GenAI Project Announcement: 2026 Top 10 for LLM & Agent Control Standard
- OWASP Top 10 for Agentic Applications 2026
- OWASP Agent Control Standard (ACS)
Related Articles
- OWASP Top 10 Explained: A Practical Guide to Website Security
- AI malware risks from LLM generated code
- How AI Is Transforming Modern Cybersecurity Solutions
- Complete Guide to Web Application Firewall WAF
- HTTP Security Headers: What to Set, How to Configure Them and How to Test
Last Verified: November 25, 2026. Prepared by SafeWebAcademy from official OWASP GenAI Security Project publications linked above. AI security frameworks evolve rapidly; check genai.owasp.org for updates before major architecture reviews.
Leave a Reply